+ Reply to Thread
Results 1 to 3 of 3

List Box - MultiSelect

  1. #1
    Bill
    Guest

    List Box - MultiSelect

    Hello,
    I have a list box where a user can select multiple items. How do I figure
    out which items are selected using VBA? I thought there was a selecteditem
    property, but I don't seem to find it.

    Thanks,

    Bill



  2. #2
    Bob Phillips
    Guest

    Re: List Box - MultiSelect

    Hi Bill,
    Here is some code as a starter


    With Me.ListBox1
    For i = 0 To .ListCount - 1
    If .Selected(i) Then
    Msgbox .List(i)
    End If
    Next i
    End With



    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Bill" <[email protected]> wrote in message
    news:[email protected]...
    > Hello,
    > I have a list box where a user can select multiple items. How do I figure
    > out which items are selected using VBA? I thought there was a

    selecteditem
    > property, but I don't seem to find it.
    >
    > Thanks,
    >
    > Bill
    >
    >




  3. #3
    Bill
    Guest

    Re: List Box - MultiSelect

    Bob,

    Thanks a lot. I appreciate it.

    "Bob Phillips" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Bill,
    > Here is some code as a starter
    >
    >
    > With Me.ListBox1
    > For i = 0 To .ListCount - 1
    > If .Selected(i) Then
    > Msgbox .List(i)
    > End If
    > Next i
    > End With
    >
    >
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Bill" <[email protected]> wrote in message
    > news:[email protected]...
    >> Hello,
    >> I have a list box where a user can select multiple items. How do I
    >> figure
    >> out which items are selected using VBA? I thought there was a

    > selecteditem
    >> property, but I don't seem to find it.
    >>
    >> Thanks,
    >>
    >> Bill
    >>
    >>

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1