Apr 21, 2006 #1 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,
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 Joined Nov 8, 2002 Messages 53,708 Location 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 Joined Jul 5, 2005 Messages 67 Location GB thanks, that worked perfectly Upvote 0 Downvote