| ²é¿´: 574 | »Ø¸´: 3 | |||
| µ±Ç°Ö÷ÌâÒѾ´æµµ¡£ | |||
lygxxmÖÁ×ðľ³æ (ÕýʽдÊÖ)
|
[½»Á÷]
¡¾ÇóÖú¡¿¼ÆËã»ú¸ßÊÖ¸ÄдһϳÌÐò
|
||
|
±¾ÈËÒò¹¤×÷ÐèÒª£¬ÐèÒª¸ÄдÏÂÃæµÄ³ÌÐò£¬ÏÂÃæµÄ³ÌÐòÔÚexcelÖÐÓã¬ÓÃVBA±àдµÄ£¬ÒªÇó¸ù¾ÝÊäÈëµÄÊý×Ö£¨±ÈÈç95£©£¬ÌîдÔÚÏàÓ¦µ¥Ôª¸ñÀïËæ»úÉú³ÉµÄÊý×ÖÊÇ70£¬80£¬90£¬100ÖеÄÒ»¸ö£¬ÌîдµÄ12¸öµ¥Ôª¸ñÀïµÄÊýºÍµÄƽ¾ùÕýºÃÊÇ95£¨ËÄÉáÎåÈ룩¡£Ð»Ð»ÁË£¡ Function createdata(k) Dim datanew(1 To 1, 1 To 12) As Integer Dim dataend(1 To 1, 1 To 12) As Integer Dim i As Integer Dim j As Integer Dim l As Integer Dim grade As Integer Dim sum As Integer Dim aver As Integer Dim control As Integer grade = Cells(k, 33) If grade > 90 Then l = 102 - grade Else l = 10 End If For i = 1 To 12 datanew(1, i) = Int(l * Rnd) + grade dataend(1, i) = datanew(1, i) sum = sum + datanew(1, i) Next i aver = sum / 12 j = aver - grade If j > 0 Then For i = 1 To 12 dataend(1, i) = datanew(1, i) - j Next i End If If j < 0 Then For i = 1 To 12 dataend(i, 1) = datanew(i, 1) + j Next i End If Range(Cells(k, 3), Cells(k, 18)) = dataend End Function [ Last edited by 2007ÆïÖí¹ä½Ö on 2008-1-8 at 20:37 ] |
» ²ÂÄãϲ»¶
366Çóµ÷¼Á
ÒѾÓÐ8È˻ظ´
0854µ÷¼Á
ÒѾÓÐ7È˻ظ´
272·Ö²ÄÁÏ×ÓÇóµ÷¼Á
ÒѾÓÐ52È˻ظ´
Ò»Ö¾Ô¸¹þ¹¤´ó 085600 277 12²Ä¿Æ»ùÇóµ÷¼Á
ÒѾÓÐ31È˻ظ´
290Çóµ÷¼Á
ÒѾÓÐ16È˻ظ´
²ÄÁϹ¤³Ì085601£¬270Çóµ÷¼Á
ÒѾÓÐ35È˻ظ´
085600²ÄÁÏÓ뻯¹¤349·ÖÇóµ÷¼Á
ÒѾÓÐ4È˻ظ´
22408 352·ÖÇóµ÷¼Á
ÒѾÓÐ5È˻ظ´
268·Ö085602»¯Ñ§¹¤³Ìµ÷¼Á
ÒѾÓÐ30È˻ظ´
211±¾¿Æ²ÄÁÏ»¯¹¤Çóµ÷¼Á
ÒѾÓÐ18È˻ظ´
dwjnet
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 1 (Ó×¶ùÔ°)
- ½ð±Ò: 2217.8
- É¢½ð: 7
- Ìû×Ó: 480
- ÔÚÏß: 32.9Сʱ
- ³æºÅ: 14647
- ×¢²á: 2003-06-06
- ÐÔ±ð: GG
- רҵ: ¹¤³ÌÈÈÎïÀíÏà¹Ø½»²æÁìÓò

2Â¥2008-03-04 18:04:16
jingtaocst
Òø³æ (СÓÐÃûÆø)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 416
- Ìû×Ó: 61
- ÔÚÏß: 19·ÖÖÓ
- ³æºÅ: 494925
- ×¢²á: 2008-01-14
- רҵ: ¼ÆËã»ú
3Â¥2008-03-26 08:50:56
loujing
Ìú¸Ëľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 19 (СѧÉú)
- ½ð±Ò: 5835.5
- É¢½ð: 2028
- ºì»¨: 8
- Ìû×Ó: 322
- ÔÚÏß: 110.2Сʱ
- ³æºÅ: 58180
- ×¢²á: 2005-02-20
- ÐÔ±ð: GG
- רҵ: ¼ÆËã»úÓ¦Óü¼Êõ
¡ï ¡ï ¡ï ¡ï ¡ï
sinapdb(½ð±Ò+5,VIP+0):thanks
sinapdb(½ð±Ò+5,VIP+0):thanks
|
³ÌÐòûÓÐÎÊÌâ°¡£¬Ö»Òª°Ñ Range(Cells(k, 3), Cells(k, 18)) = dataend ¸Ä³ÉRange(Cells(k, 3), Cells(k, 14)) = dataend ¾Í¿ÉÒÔÁË¡£ kÊÇÐкţ¬Äã¿ÉÒÔ°Ñgrade = Cells(k, 33) ¸Ä³Égrade = Cells(k, 1)£¬ÄÇôÔÚ(k,1)ÊäÈë95£¬ ´Ó(k,3)µ½(k,14)ÀïÃæ¾ÍÏÔʾ12¸öÊýÁË£¬¶øÇÒÆ½¾ùÖµÊÇ95¡£ |
4Â¥2008-06-13 03:43:33













»Ø¸´´ËÂ¥