請教諸位大大
Dim d As Object , a
Dim r As Range
Sheets("學生資料").Activate
Set d = CreateObject("Scripting.Dictionary")
With Sheets("學生資料")
For Each r In .Range(.Cells(2, 1), .Cells(65536, 1).End(xlUp))
d(r.Value) = r.Value
Next
End With
a=d.keys
ComboBox1.List = d.keys
End Sub
請教
如何可使 d.keys 各項重作排序動作 (結果使a(0),a(1),a(2)-----是遞增排序)?
謝謝指導作者: GBKEE 時間: 2014-6-19 11:52
回復 3#Hsieh
謝謝Heish 版大
For i = 1 To Len(a)
k = k + Asc(Mid(a, Len(a) - i + 1, 1)) * 10 ^ i
Next
有意思
"08" "10" "11" "01" "02"可排序成 "01"<"02"<"08" <"10"<"11" 嗎?
"01"<"1"嗎?作者: GBKEE 時間: 2014-6-20 07:30