Apr 21, 2006 #1 gavjb Technical User Jul 5, 2005 67 GB Hi, Does anyone know of an easy way in VBA to select all values in a multiselect(simple) listbox Thanks, Gavin,
Hi, Does anyone know of an easy way in VBA to select all values in a multiselect(simple) listbox Thanks, Gavin,
Apr 21, 2006 1 #2 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Apr 21, 2006 Thread starter #3 gavjb Technical User Jul 5, 2005 67 GB thanks, that worked perfectly Upvote 0 Downvote