I have created a user form that has combo boxes which use an advanced filter to populate list boxes.
The unique / distinct results are returned in the order in which they appear in the list, I would like to sort them desc but have no idea how to?!
Any and all help most appreciated
The unique / distinct results are returned in the order in which they appear in the list, I would like to sort them desc but have no idea how to?!
Code:
Private Sub TestPopulatecmbCategory()
Dim v, e
With Sheets("DATA").Range("A2:A39")
v = .Value
End With
With CreateObject("scripting.dictionary")
.comparemode = 1
For Each e In v
If Not .exists(e) Then .Add e, Nothing
Next
If .Count Then Me.cmbCategory.List = Application.Transpose(.keys)
End With
End Sub
Any and all help most appreciated