I am trying to create then populate combobox with values from a collection. Seems simple enough but keeps it keeps crashing when I try to do anything like .clear or .additem. What am I doing wrong here? Thanks.
Code:
' create the box
Sheets("thesheet").Cells(1, 2).Select
ActiveSheet.OLEObjects.Add(ClassType:="Forms.ComboBox.1",
Link:=False, DisplayAsIcon:=False).Select
Code:
' rename and populate
With Selection
comboName = "comboname"
.name = comboName
.AddItem "theitem"
End With