+ Reply to Thread
Results 1 to 7 of 7

create a dynamic table based on selected check boxes

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    create a dynamic table based on selected check boxes

    badly need your expertise guys... attached file is a plain excel file because i am a newbie in macros.

    i need your help to create a macro in the attached file which can create a table based on whatever is selected in the check boxes. the user can check multiple items in either of the categories, so the table should be dependent on what is chosen in the categories (blue area). it would also be nice if there is a functioning "select all" and "clear selection" button.

    the source for the would be table is in sheet 2, note that in this sample everything are just values but in the real file, sheet 2 would be mostly formulas... so the table created in sheet 1 should just be the values.

    and if its not too much too ask, i hope that whatever data gathered in column N, can be automatically sorted from highest to lowest.


    really appreciate anyone who could take a look into this. thanks in advance for your help
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: create a dynamic table based on selected check boxes

    your teams dont match your checkbox's on sheet 1

    Team
    CRVR
    CBT
    import
    WCSA Import
    Export

    so it wont actually work?
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: create a dynamic table based on selected check boxes

    the teams in sheet 1 were just dummy data.... the correct team names is as per those in the check boxes.

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: create a dynamic table based on selected check boxes

    see attached

    many things have changed mainly i have grouped your check boxes into 3 groups

    Group Team
    Group Week
    Group Role

    this theme's thru all the codes

    For instance
    in sheet1

    Please Login or Register  to view this content.
    this code is to select all in team.....similar code for deselecting team and GROUP week

    none for role as only 2

    the majority of the code is on the update button
    code is long as it is doing everything 3 times (due to 3 groups of checkbox's)

    Please Login or Register  to view this content.
    as there are so many options array's for each criteria was made
    check was put in in case too many filters placed and nothing returns
    Attached Files Attached Files
    Last edited by humdingaling; 08-13-2015 at 01:28 AM.

  5. #5
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: create a dynamic table based on selected check boxes

    BTW i took away all your Formatting of cells in white and just removed grid lines instead.....it messes with the copying of the formatting
    you shouldnt really do it anyway as it makes the file unnecessarily large with formatting of cells you don't really need to

  6. #6
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: create a dynamic table based on selected check boxes

    i could kiss you right... thanks a lot

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: create a dynamic table based on selected check boxes

    glad you liked

    it was a challenge trying to find the syntax for the grouped check boxes
    so ill be keeping this one in my database as well

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Loop to add up values of selected check boxes
    By lbi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-31-2013, 12:42 PM
  2. Replies: 0
    Last Post: 07-29-2013, 10:45 AM
  3. Delete This Posting Please
    By dsannito in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2013, 10:34 AM
  4. How to create a dynamic table based on a range of cells
    By leviathan86 in forum Excel General
    Replies: 1
    Last Post: 01-09-2013, 03:59 PM
  5. Automatic setting of check boxes based on other check boxes?
    By ArchiveMike in forum Excel General
    Replies: 5
    Last Post: 07-31-2012, 09:43 AM
  6. Replies: 1
    Last Post: 07-13-2012, 12:11 PM
  7. Check boxes linked to Dynamic Pivot Table
    By cymon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-28-2007, 04:01 AM
  8. Replies: 1
    Last Post: 02-09-2006, 06:35 PM

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