- ©«¤l
- 605
- ¥DÃD
- 92
- ºëµØ
- 0
- ¿n¤À
- 648
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- macau
- µù¥U®É¶¡
- 2013-4-5
- ³Ì«áµn¿ý
- 2019-2-10
|
¦^´_ 2# sunnyso
§ó·sCode ²¤¹LªÅ¥Õ- Function UNIQUEp(source As Range, num As Integer)
- Dim newArray, myArray As Variant
- rows_num = source.Rows.Count
- 'myArray = Range(Cells(source.Row, source.Column), Cells(source.Row + rows_num - 1, source.Column)).Value
- myArray = Range(source.Address).Value
-
- Set Dic = CreateObject("scripting.dictionary")
- For i = 1 To rows_num
- If myArray(i, 1) <> "" Then
- Dic((myArray(i, 1))) = ""
- End If
- Next
-
- arr = Dic.Keys
-
- UNIQUEp = arr(num - 1)
- End Function
½Æ»s¥N½X |
|