Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jw jw is offline
external usenet poster
 
Posts: 1
Default Workbook_Open event and combobox state storage question

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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
workbook_Open event Procedure peerless Excel Discussion (Misc queries) 1 May 22nd 06 10:21 PM
workbook_Open event Procedure peerless Excel Discussion (Misc queries) 0 May 22nd 06 10:16 PM
Workbook_Open() Event Bill Martin Excel Discussion (Misc queries) 9 January 13th 06 08:24 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM
Workbook_Open event not working jason Excel Programming 2 September 7th 03 04:02 PM


All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"