Any suggestions on how I can programmatically select all items in a list box? I want the user to select an option button to "Select All" items in a list box.
This will select all the items in a List Box called "MyListName":
Dim ctl As Control, i As Integer
Set ctl = Me!MyListName
For i = 0 To ctl.ListCount - 1
ctl.Selected(i) = True
Next i
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.