If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > save multiple listbox picks after close?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-04, 03:35
yoviking yoviking is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
save multiple listbox picks after close?

Hi,
I'm very new at this, so sorry if my question is a little dumb.

I created a worksheet using VBA. In one column I need a lisbox that allows users to choose multiple items. I made a listbox that does this, but if I save and close the file, when I open it back up all the choices are erased. They aren't gone when you open it, but within .5 seconds after opening it the listbox goes blank. It almost looks like it is a macro, but I didn't program a macro like that and I never hit any buttons to start a macro. What is going on?

Any help is appreciated.
Thanks!!!!
Reply With Quote
  #2 (permalink)  
Old 01-04-04, 10:58
pierrevbaexcel pierrevbaexcel is offline
Registered User
 
Join Date: Dec 2003
Location: Ottawa, Canada
Posts: 72
Hi

You don't need to use VBA to create drop-down lists. Go to the menu "Data/Validation" select "List" and then submit a list of values separated by commas or a range. With this approach, you can have 1 cell or 1,000 cells with a drop-down list to choose from and you don't have to maintain each and everyone of them. Just copy/paste the cell in which you have created the DDL to thousands of cells.

See:

www.excel-vba.com/e-database-functions.htm
__________________
A piece of data is like a brick
If you don't build anything with it
It is just a brick
www.excel-examples.com
Reply With Quote
  #3 (permalink)  
Old 01-04-04, 20:24
yoviking yoviking is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks!
That doesn't seem to solve my problem though since I need multiple options displayed and saved at the same time. Am I missing something?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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