Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Listbox when no item selected

  1. #1
    Board Regular
    Join Date
    Apr 2002
    Location
    Ireland
    Posts
    107
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    How do u check if no item is selected in a list box? Its just I want to display an error message when it happens. Cheers.
    [Brian]

  2. #2
    Board Regular
    Join Date
    Apr 2002
    Location
    Greenwood, SC
    Posts
    677
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    listbox.listindex = -1 tells that the listbox is empty.

  3. #3
    Board Regular
    Join Date
    Apr 2002
    Location
    Ireland
    Posts
    107
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Cheers thanks a lot
    [Brian]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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