By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,972 Members | 883 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,972 IT Pros & Developers. It's quick & easy.

Multiple selection from the list box or combo box

100+
P: 106
Is it possible to select multiple items from a list or Combo box?

If yes then how?

Thanks
Oct 24 '06 #1
Share this Question
Share on Google+
3 Replies


100+
P: 143
Not from a combo box, but you can from a list box. There's a property on the list box called Multi Select. Change that to Simple.You wiil obvously need code somewhere to carry out the instructions. Depends on what you want to do.
Oct 24 '06 #2

MMcCarthy
Expert Mod 10K+
P: 14,534
Is it possible to select multiple items from a list or Combo box?

If yes then how?

Thanks
ListBox only

In properties window go to the other tab and set Multi Select to Simple

Then you can use the following code somewhere:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim tmpItem As Variant
  3.  
  4. For Each tmpItem In listBoxName.ItemsSelected
  5.  
  6. ' do something
  7. ' reference each object individually using
  8. <something> = listBoxName.ItemData(tmpItem)
  9.  
  10. Next tmpItem
  11.  
  12.  
Oct 24 '06 #3

P: 16
not possible in combobox , but in listbox allow to select
Feb 10 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.