- 帖子
- 227
- 主題
- 3
- 精華
- 1
- 積分
- 273
- 點名
- 0
- 作業系統
- XP
- 軟體版本
- XP
- 閱讀權限
- 20
- 性別
- 女
- 註冊時間
- 2011-3-22
- 最後登錄
- 2013-1-29
|
- Sub Ex()
- Dim D As Object, R As Range
- Set D = CreateObject("Scripting.Dictionary")
- With Sheet1
- For Each R In .Range(.Cells(2, 3), .Cells(65536, 4).End(xlUp)).Rows
- D(R.Cells(1) & R.Cells(2)) = R
- Next
- End With
- If D.Count = 0 Then Exit Sub
- With ListBox1
- .ColumnCount = 2
- .List = Application.Transpose(Application.Transpose(D.items))
- End With
- End Sub
複製代碼 |
|