Results 1 to 8 of 8

How do I get value of a multi-selection form listbox?

Threaded View

  1. #1
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    How do I get value of a multi-selection form listbox?

    I've never used the form listbox before. I've always used data validation list.

    How do I get the selections into my macro? I have my macro putting the listbox into an object, but I can't find a value.
    Sub ListBox_Selection()
        Dim s As String
        Dim sh As Worksheet
        Dim o As Object
        
        On Error Resume Next
        s = Application.Caller
        On Error GoTo HE
        
        If s <> "" Then
            Set sh = ActiveSheet
            Set o = sh.ListBoxes(s)
            'how do I get the selections?
        End If
    HE:
    End Sub
    Last edited by foxguy; 07-15-2010 at 12:49 AM.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

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