Referencing An Object From ThisWorkbook

Posted by Soo on Stack Overflow See other posts from Stack Overflow or by Soo
Published on 2010-06-08T18:18:07Z Indexed on 2010/06/08 18:22 UTC
Read the original article Hit count: 141

Filed under:

I need to populate several comboboxes in an Excel sheet upon loading it.

I have the Workbook_Open() event set up on my ThisWorkbook code sheet in my VBA Editor.
Now that the code isn't in my Sheet1 code sheet in my VBA Editor, the following code doesn't work:

ComboBox.AddItem "hulkSMAASH!"

How can I reference this combobox from my ThisWorkbook code sheet in my VBA Editor?

© Stack Overflow or respective owner

Related posts about vba