Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Posts
    173

    Unanswered: Clearing the selected values from a list.

    Is there a quick way to clear the selected items on a list. I'm using multi-select and after the user fetches a report with the given filter (selected from the list box) I'd like to set the list box to appear with no selected values.

  2. #2
    Join Date
    Aug 2002
    Location
    Cambridge, England
    Posts
    47
    I wrote this for the same purpose:

    Code:
    ' Deselect all data from a listbox
    
    Dim itm As Variant
    
    For itm = 0 To lst.ListCount - 1       'DeSelect all records in Lst
        lst.Selected(itm) = False
    Next itm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •