Link to home
Start Free TrialLog in
Avatar of hillo10
hillo10

asked on

multipul listbox selection

hi, i'm stuck on a listbox event, i need to be able to select 3 listboxs at the same time.

to select 2 at the same time i use..

If List1.Selected(List1.ListIndex) = True Then
List2.Selected(List1.ListIndex) = True
ElseIf List1.Selected(List1.ListIndex) = False Then
List2.Selected(List1.ListIndex) = False

how would i go about adding a 3rd listbox so that gets selected too?
ASKER CERTIFIED SOLUTION
Avatar of rspahitz
rspahitz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hillo10
hillo10

ASKER

i have tried that, and for some reason it doesn't select the 3rd listbox, i know this because i've set it to display in a textbox, yet no joy
The suggestion above works just fine for me!?  You need to list the code where you include the 3rd listbox.
Are you putting all of your code on one line?  I don't see the end-if which indicates that yours may not be working like mine.  Try putting each line on a separate code line without and line continuation markers.
Avatar of hillo10

ASKER

i have tried that, and for some reason it doesn't select the 3rd listbox, i know this because i've set it to display in a textbox, yet no joy