- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 6# myleoyes
Sub ²M³æ() 'Dictionary ª«¥ó
Dim D As Object
Set D = CreateObject("SCRIPTING.DICTIONARY")
With Sheet1
For Each E In .Range("C2", .Range("IV2").End(xlToLeft))
If E <> "" Then D(E.Value) = ""
Next
.[A3].Resize(D.Count, 1) = Application.Transpose(D.KEYS)
End With
End Sub
Sub ²M³æS() 'Array
Dim Ar()
ReDim Preserve Ar(0)
With Sheet1
Ar(0) = .[C2]
For Each E In .Range("D2", .Range("IV2").End(xlToLeft))
If E <> "" Then
If UBound(Filter(Ar, E, True)) = -1 Then
ReDim Preserve Ar(UBound(Ar) + 1)
Ar(UBound(Ar)) = E
End If
End If
Next
.[A3].Resize(UBound(Ar) + 1, 1) = Application.Transpose(Ar)
End With
End Sub |
|