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
 
Top