+ Reply to Thread
Results 1 to 3 of 3

List Box - MultiSelect

Hybrid View

Guest List Box - MultiSelect 01-31-2005, 06:06 PM
Guest Re: List Box - MultiSelect 01-31-2005, 06:06 PM
Guest Re: List Box - MultiSelect 01-31-2005, 07:06 PM
  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" <whmc2@ix.netcom.com> wrote in message
    news:uYO2av9BFHA.4092@TK2MSFTNGP09.phx.gbl...
    > 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" <bob.phillips@notheretiscali.co.uk> wrote in message
    news:OtH9Rz9BFHA.2380@tk2msftngp13.phx.gbl...
    > 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" <whmc2@ix.netcom.com> wrote in message
    > news:uYO2av9BFHA.4092@TK2MSFTNGP09.phx.gbl...
    >> 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