- ©«¤l
- 135
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 165
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-12-9
- ³Ì«áµn¿ý
- 2012-8-27
|
¦^´_ 1# oobird
°µ¤FVBAµ{¦¡,¤£¹Lµ¥Ô®É¶¡¸ûªø,¦³®Éµ{¦¡·|¦Û°Ê¤¤Â_+¦³Åã¥Ü¿ù»~,©Ò¥H¤£nÀÝ¥ÎVBA- Option Explicit
- Sub table()
- Dim classnumber As Object, mycell As Range
- Set classnumber = CreateObject("scripting.dictionary")
- With Range("S1")
- .Value = "¦Ò¥Í¸¹"
- .Offset(, 1).Value = "©m¦W"
- .Offset(, 2).Value = "¤Æ¾Ç"
- .Offset(, 3).Value = "¥~»y"
- .Offset(, 4).Value = "¥Íª«"
- .Offset(, 5).Value = "¦a²z"
- .Offset(, 6).Value = "ª«²z"
- .Offset(, 7).Value = "¬Fªv"
- .Offset(, 8).Value = "»y¤å"
- .Offset(, 9).Value = "¼Æ¾Ç"
- .Offset(, 10).Value = "¾ú¥v"
- End With
- Range("S2").Activate
- For Each mycell In Sheet1.Range([a2], [a65536].End(xlUp))
- If classnumber.exists(mycell.Value) Then
- Else
- classnumber.Add mycell.Value, mycell.Value
- ActiveCell.Value = mycell.Value
- ActiveCell.Offset(, 1).Value = mycell.Offset(, 1).Value
- ActiveCell.Offset(, 2).Value = mycell.Offset(, 3).Value
- ActiveCell.Offset(, 3).Value = mycell.Offset(1, 3).Value
- ActiveCell.Offset(, 4).Value = mycell.Offset(2, 3).Value
- ActiveCell.Offset(, 5).Value = mycell.Offset(3, 3).Value
- ActiveCell.Offset(, 6).Value = mycell.Offset(4, 3).Value
- ActiveCell.Offset(, 7).Value = mycell.Offset(5, 3).Value
- ActiveCell.Offset(, 8).Value = mycell.Offset(6, 3).Value
- ActiveCell.Offset(, 9).Value = mycell.Offset(7, 3).Value
- ActiveCell.Offset(, 10).Value = mycell.Offset(8, 3).Value
- ActiveCell.Offset(1).Activate
- End If
- Next
- For Each mycell In Range("U2:Ac643")
- If mycell.Value >= 85 Then
- mycell.Value = "A"
- ElseIf mycell.Value >= 65 And mycell.Value < 85 Then
- mycell.Value = "B"
- ElseIf mycell.Value < 65 Then
- mycell.Value = "C"
- End If
- Next
- Columns("S").NumberFormat = "0"
- Columns("S").AutoFit
- Set classnumber = Nothing
- End Sub
½Æ»s¥N½X ¤£¹L©O,¥i§_°§C¤U¸üªþ¥óªºªùÂe,¬Ý¨º»ò¦hµL·N¸qªº¦^©« |
|