I have created a user form which populates a table, I want this form to basically show the information already in the table as a list. So to do this, I have a Unique list taht the user form pulls from to get the data. The below VBA is what I have used.
Private Sub Userform_Initialise()
Dim v, e
With Sheets("dropdowns").Range("I2:I500")
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.ComboBox1.List = Application.Transpose(.keys)
End With
This code works for 1 ComboBox. I would like to repeat the above for 2 more Comboboxes from other unique lists.
What needs to be changed in the code above to get this to work?