- ©«¤l
- 976
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 1018
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2016
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-4-19
- ³Ì«áµn¿ý
- 2024-10-30
|
¦^´_ 1# oak0723-1
¤£¤@¼Ëªº¸Ñªk¦³¤ñ3#¦A´£¤É¤@ÂIÂI®Ä²v¡A½Ð´ú¸Õ¬Ý¬Ý¡AÁÂÁÂ
Sub test2()
Dim Arr, xD, a, T, i&
Set xD = CreateObject("Scripting.Dictionary")
Tm = Timer
Arr = Range("h6:h" & Cells(Rows.Count, 8).End(xlUp).Row)
For i = 1 To UBound(Arr)
T = Arr(i, 1): If T <> "" Then xD(T) = ""
Next
For i = 1 To xD.Count
a = Application.Large(xD.keys, i)
n = n + 1: xD(a) = n
Next
For i = 1 To UBound(Arr)
T = Arr(i, 1)
If T = "" Then Arr(i, 1) = 0: GoTo 99
Arr(i, 1) = xD(T)
99: Next
Range("j6").Resize(UBound(Arr)) = Arr
MsgBox Timer - Tm
End Sub |
|