Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2003
    Posts
    11

    Question Unanswered: Select ALL in a listbox?

    Is it possible to select ALL in a listbox?

    Cheers

    Will

  2. #2
    Join Date
    Aug 2002
    Location
    Cambridge, England
    Posts
    47
    Hi,

    I did this a while ago, try it...

    Code:
    Private Sub cmdSelectAll_Click()
        
    Dim itm As Variant
    Dim lst  As ListBox
        
    Set lst = Me!MainListBox
    
    For itm = 0 To lst.ListCount - 1
        lst.Selected(itm) = 1
    Next itm
    
    End Sub

  3. #3
    Join Date
    Mar 2003
    Posts
    11
    Thanks for that...it worked

    Cheers


    Will

Posting Permissions

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