Multi-Select List Box

J

Jim Pockmire

I have an extended multi-select list box on a form. I would like to add a
button to the form to select all values in the list box. What code should I
use?
 
D

dan artuso

Hi,
Here you go. Substitute the name of your listbox

Dim i As Integer

For i = 0 To Me.lstCon.ListCount - 1
Me.lstCon.Selected(i) = True
Next i
 

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

Top