A Microsoft Office (Excel, Word) forum. OfficeFrustration

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   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Drop-down lists



 
 
Thread Tools Display Modes
  #1  
Old September 28th, 2004, 05:01 PM
Pierraud
external usenet poster
 
Posts: n/a
Default Drop-down lists

How can I have the system select more than one item (or cell) from a
drop-down list. Different items can be selected from the same list but the
system will not allow me to add more than one.
  #2  
Old September 28th, 2004, 05:25 PM
Anne Troy
external usenet poster
 
Posts: n/a
Default

Dropdowns are generally created using Data-Validation. Using this method,
you cannot select multiple options. You'll need a listbox or combobox.

Here's some sample code:
Sub FindItems()

Dim Msg As String, i As Integer
Msg = ""
With TestDialog.ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) Then
Msg = Msg & .List(i) & Chr(13)
End If
Next i
End With
MsgBox Msg, , "Selected items in ListBox1"
End Sub

________________________

**** Hope it helps! ****

~Dreamboat
Excel VBA Certification Coming Soon!
www.VBAExpress.com/training/
********************************

"Pierraud" wrote in message
...
How can I have the system select more than one item (or cell) from a
drop-down list. Different items can be selected from the same list but

the
system will not allow me to add more than one.



 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel drop down lists Sinead General Discussion 1 July 21st, 2004 03:20 PM
linking drop down menu items to corresponding items in other lists Jklay General Discussion 2 June 15th, 2004 07:42 PM


All times are GMT +1. The time now is 09:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.