How do you create (not modify/populate) a ListBox in Excel VBA? I need to generate various ListBoxes for each cell in a column, doing it without VBA would be impractical. I'm looking for something like:
Dim lb as ListBox
' Populate ListBox Here '
worksheet.Cells(1,1) = lb ' Apply ListBox to cell '
I've googled this thoroughly (maybe my terminology is wrong) but I cant find a single reference to CREATING a listbox, and applying it to various cells.
Thanks!
EDIT: It should be noted that Dim lb As MSForms.ListBox
throws the error
"User-defined type not defined"
. Maybe this is how to create ListBoxes... but I need to include this library????? I don't know how to do that though...
listbox
?And here is how to create a listbox – bonCodigo