0
在belwo編碼的幫助下,我可以從組合框中刪除重複的項目,但它不會反映項目的升序。我想按照升序來反映組合框中的所有項目。 請協助。組合框顯示項目的升序
ComboBox37.Clear
With CreateObject("Scripting.Dictionary")
For Each rCell In wksSource.Range("M6", wksSource.Cells(Rows.Count, "M").End(xlUp))
If Not .exists(rCell.Value) Then
.Add rCell.Value, Nothing
End If
Next rCell
ComboBox37.List = .keys
End With