Multi-Select List Box

  • Thread starter Thread starter Jim Pockmire
  • Start date Start date
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?
 
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
 
Back
Top