Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBoxes 1

Status
Not open for further replies.

gavjb

Technical User
Joined
Jul 5, 2005
Messages
67
Location
GB
Hi,

Does anyone know of an easy way in VBA to select all values in a multiselect(simple) listbox

Thanks,


Gavin,
 
Dim intRow As Integer
With Me![listbox name]
For intRow = 0 To .ListCount - 1
.Selected(intRow) = True
Next intRow
End with

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
thanks, that worked perfectly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top