Workbook_Open event and combobox state storage question

J

jw

The following is a summary of what I'm doing/trying to do: (Excel
2000)

Using VBA at workbook_open I insert strings/selections into a
[already existing but blank] combobox using oleobjects-->additem. I
save the workbook. I reopen the workbook, and through some logic, do
not do the additem procedure again. Result: The combobox is empty. I'm
relatively new to Excel/VBA but I was expecting the combobox to still
contain the items I inserted into it before. Is there a property I can
set that would perform this for me?

And, what I'm actually wanting to do is to store the combobox's
selected state (along with the unselected strings in tact) and restore
it at the next startup. I realize I can do this using code (rather
lengthy since I actually have many comboboxes in this worksheet) but
I'm trying to alleviate my future maintenance headaches.

Anybody have any ideas?

Thanks in advance,
JW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top