listbox

  • Thread starter Thread starter ranswrt
  • Start date Start date
R

ranswrt

How do I make a list box in a form that to the left of the list item there is
a check box or so that I can select multiple items in the list box?
Thanks
 
Set up a loop to iterate through the entries on the listbox and check
to see which ones have .selected = true.

hth

Keith
 
Use more the VBA help for all the control properties or method
Once your cursor is in the MultiSelect property, press F1,
and select example.
 
Please read the help file

For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) = True Then
msgbox "selected value I : " & ListBox1.List(i)
End if
Next i
 
Thanks

Jean-Yves said:
Please read the help file

For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) = True Then
msgbox "selected value I : " & ListBox1.List(i)
End if
Next i
--
Regards

Jean-Yves Tfelt
Europe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top