- ©«¤l
- 258
- ¥DÃD
- 77
- ºëµØ
- 0
- ¿n¤À
- 385
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- Taiwan
- µù¥U®É¶¡
- 2010-8-8
- ³Ì«áµn¿ý
- 2021-1-25
|
¦^´_ 1# yangjie
¸Õ¤F¦h¹M¡AÁÙ¬OTry¦¨¥\¤F
Dim d As Object, a, b
Set d = CreateObject("Scripting.Dictionary")
wb1.Activate
With Sheets("°ò¥»¸ê®Æ")
row1 = .Cells(65536, 7).End(xlUp).Row
If row1 = 1 Then Exit Sub
For i = 2 To .Cells(65536, 7).End(xlUp).Row
If .Cells(i, 7) <> "" Then
d(.Cells(i, 7).Value) = d(.Cells(i, 7).Value) + .Cells(i, 9).Value
End If
Next
End With
a = d.Keys
b = d.Items
If d.count > 0 Then
For i = 0 To d.count - 1
If CLng(a(i)) > 0 And CLng(a(i)) <= 10 Then
Controls("TextBox" & i + 1) = b(i)
End If
Next
End If |
|