+ Reply to Thread
Results 1 to 4 of 4

Select All in List Box - VBA Form

  1. #1
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Select All in List Box - VBA Form

    Hi all,

    I have a form with a list box that allows multiple selections. This particular list box has 22 items added to it. Is there a way for the user to select all items in the box if they should want to? I was hoping to apply the: Select one, press Shift and select another where all the items in between are selected. Can this be done?
    Last edited by Mordred; 06-10-2011 at 05:31 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Select All in List Box - VBA Form

    Mordred,

    In the listbox's properties, change the MultiSelect Propterty to 2 - fmMultiSelectExtended

    Hope that helps,
    ~tigeravatar

  3. #3
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Select All in List Box - VBA Form

    Hi tigeravatar, that is exactly what I needed. Thanks so much. I'll tap your scales for that but I have to spread them around first (apparently).

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Select All in List Box - VBA Form

    lol, I didn't know there was a time limit between them. I suppose it makes sense, to prevent a friend from just spamming rep for no reason.

+ 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