+ Reply to Thread
Results 1 to 4 of 4

Create a user form with a multi-column list box

  1. #1
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Smile Create a user form with a multi-column list box

    Hello all,

    I had a macro previously solved here by protonleah (thanks protonleah)

    Here's the link...

    http://www.excelforum.com/excel-prog...-criteria.html


    Here's the code:

    Please Login or Register  to view this content.
    I however, would like to modify this code to instead, bring up a list of states that can be selected via checkmark inside a checkbox.

    Keep in mind that my data will not actually be states, this is dummy text and data pulled would be from the column named "Date Opened".

    Pressing "Cancel", "OK" or "Select All" would automatically keep all "states"

    I've attached a sample picture of what I am looking for.

    Is this possible?

    thanks much
    Attached Images Attached Images
    Last edited by duugg; 07-23-2009 at 10:39 AM. Reason: searchability

  2. #2
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Re: Check Box asking you to select all that apply...

    bump, no response

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Check Box asking you to select all that apply...

    It would be more helpful if you posted your workbook so that your structure and data are available.

    Here is a general outline of how to proceed:
    You will need to create a user form with a multi-column list box set to use MultiSelectMulti property and probably a separate check box for "all". The RowSource should be a list of "states" with text that exactly match the values in your data.

    Next, you'll need to loop through all of the check boxes in the form to test which ones are checked and match them against the rows in the applicable column and delete all matching rows.

    All of the checked boxes could probably done as an array.
    Preferably, your data is a dynamic named range to automatically accommodate changes in size from addition and deletion of rows.

  4. #4
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Re: Check Box asking you to select all that apply...

    Palmetto,

    I will look into this option further and post once I'm more familiar with all that you have written for me.

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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