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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |