I am trying to create a form which contains several listboxes in excel using VBA. I want the form and listboxes created via code so that the code can be transfered easily to many users.
I know how to create a form and I know how to create a listbox - problem is I don't know how to create a listbox ON a form...
Here is what I have so far - which creates the form and listbox seperately:
ActiveSheet.OLEObjects.Add "Forms.Form.1", _
Left:=150, Top:=25, Height:=100, Width:=100
ActiveSheet.OLEObjects.Add "Forms.ComboBox.1", _
Left:=250, Top:=50, Height:=20, Width:=100
Any help would be greatly appreciated!
I know how to create a form and I know how to create a listbox - problem is I don't know how to create a listbox ON a form...
Here is what I have so far - which creates the form and listbox seperately:
ActiveSheet.OLEObjects.Add "Forms.Form.1", _
Left:=150, Top:=25, Height:=100, Width:=100
ActiveSheet.OLEObjects.Add "Forms.ComboBox.1", _
Left:=250, Top:=50, Height:=20, Width:=100
Any help would be greatly appreciated!