Select Multiple Items in a ComboBox (VBA) ???

Terry_Orange

Board Regular
Joined
Jul 22, 2002
Messages
133
Given that I have a combobox that shows all of the files on my floppy disk, I would like the user to be able to select multiple files from this disk for an action to be done to just those files.

Does anyone know how this can be done, if it is at all possible ? If not, is there any work-around using a different technique or has anyone used a different method to achieve the same ends ???

Thanks

TO.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I like nice and easy replies like that - even it makes me look stupid !

THANK YOU. Much appreciated.

TO.
 
Upvote 0
If I want to access this information from a multiple selection, how do I recall this ?

To get a single piece from a combobox I am using

comboBox1.List(comboBox1.ListIndex)...

any ideas for this multiple selection of a listbox ?

Thanks
TO
 
Upvote 0
Like this:

Code:
For i = 0 To ListBox1.ListCount - 1
   If ListBox1.Selected(i) Then
'     ** Your code goes here ***
   End If
Next i
 
Upvote 0

Forum statistics

Threads
1,217,273
Messages
6,135,590
Members
449,948
Latest member
silent_warrior52004

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top