底下程式用一欄來當資料陣列
再用 Collection 來存放資料
-------------------------------------------
Dim CollectArr As New Collection
Dim something As Variant
Dim DataArray() As Variant
DataArray() = Sheet1.Range(Sheet1.Cells(1, key), Sheet1.Cells(RowCount, key))
On Error Resume Next
For Each something In DataArray
CollectArr.Add something, something
Next
能貼圖教學一下嗎?
回覆刪除有空的話,我會補上來!
刪除