Option Explicit
Private Sub ComboBox1_Change()
Dim A As Range, d As Object
Set d = CreateObject("Scripting.Dictionary")
With Sheets("我的知識庫")
For Each A In .Range("B4", .[B65536].End(xlUp)).SpecialCells(2)
d(A.Value) = ""
Next
ComboBox1.List = d.keys
End With
End Sub
Private Sub ComboBox1_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
'觸發ComboBox1_Change
ComboBox1.Value = "."
ComboBox1.Value = ""
End Sub作者: singo1232001 時間: 2023-7-21 06:03