- 帖子
- 323
- 主題
- 6
- 精華
- 0
- 積分
- 313
- 點名
- 0
- 作業系統
- xp
- 軟體版本
- 2k
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2015-6-24
- 最後登錄
- 2026-1-5
|
Public vD as object
'
Private Sub CommandButton1_Click()
If Application.FindFile = False Then
MsgBox "您沒有開啟母檔"
End If
Dim lRow&
if vD is nothing then Set vD = CreateObject("Scripting.Dictionary")
lRow = 3
vD.RemoveAll
While Cells(lRow, 1) <> ""
If Not vD.Exists(CStr(Cells(lRow, 1))) Then
EXCEL表單處理介面.ListBox1.AddItem CStr(Cells(lRow, 1))
vD(CStr(Cells(lRow, 1))) = lRow
End If
lRow = lRow + 1
Wend
End Sub |
|