+ Reply to Thread
Results 1 to 4 of 4

WorkSheet List Box Multiple Selection by Macros

  1. #1
    Forum Contributor
    Join Date
    04-18-2009
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    269

    WorkSheet List Box Multiple Selection by Macros

    Dear All,

    I have a list box in an Excel sheet (with the selection type MULTI). I have inserted a check box by the name 'Select All'. Once the check box is checked, I would like all items in the List box to be selected.

    The code to select one item at a time is this:
    Please Login or Register  to view this content.
    This code only selects one item at a time. So, at the end of the code, the last item of the list is selected.

    Can anyone help me with the code to select all items at the same time?

    Thanks in advance.

    Regards,
    Karan

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: WorkSheet List Box Multiple Selection by Macros

    Hi Karan
    perhaps this example will help you
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    04-18-2009
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    269

    Re: WorkSheet List Box Multiple Selection by Macros

    Hi Nilem,

    Thank you for your reply.

    However, the code mentioned in your file is applicable for ActiveX Controls. On the other hand, I have used Form Controls on the Sheet.

    Regards,
    Karan

  4. #4
    Forum Contributor
    Join Date
    04-18-2009
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2016
    Posts
    269

    Re: WorkSheet List Box Multiple Selection by Macros

    Do you have a solution for Form Controls on the Sheet (not ActiveX Controls)?

    The code would be something on these lines:
    Please Login or Register  to view this content.

+ 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