PDA

Click to See Complete Forum and Search --> : Using multi-select list boxes


Jan 20th, 2000, 08:58 AM
I want to know how to multi select items in a list box and then use the highlighted items for another task. my problem is i dont know how to access the selected items. Anyone know? thanks.

MartinLiss
Jan 20th, 2000, 09:28 AM
After setting the MultiSelect property of the ListBox to True, this will do the rest.
Dim intIndex As Integer

For intIndex = 0 To List1.ListCount - 1
If List1.Selected(intIndex) Then
MsgBox "My index is " & intIndex & ", my text is " _
& List1.List(intIndex) & " and I'm selected"
End If
Next intIndex


------------------
Marty
Can you buy an entire chess set in a pawn shop?

Jan 20th, 2000, 01:31 PM
thanks