dizzydunham
New Member
- Joined
- Mar 22, 2014
- Messages
- 30
Hi,
I have created a userform which populates with comboboxes at run time.
How do I populate them from a range. and use scripting.dictionary
I have done this before with a combobox at design, how do I structure the code referring to dynamic controls (SName & i)?
Many thanks for looking.
I have created a userform which populates with comboboxes at run time.
How do I populate them from a range. and use scripting.dictionary
I have done this before with a combobox at design, how do I structure the code referring to dynamic controls (SName & i)?
HTML:
With CreateObject("scripting.dictionary")
For Each Cl In Sheets("Applicants").ListObjects("Table7").ListColumns(3).DataBodyRange
If Not .exists(Cl.Value) Then .Add Cl.Value, Nothing
Next Cl
UserForm4.SName& i.Clear
UserForm4.SName&i.List = Application.Transpose(.keys)
.RemoveAll
End With
Many thanks for looking.
Last edited: