+ Reply to Thread
Results 1 to 6 of 6

User form: with check boxes how do i allow MULTIPLE auto filters to run at the same time

  1. #1
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    User form: with check boxes how do i allow MULTIPLE auto filters to run at the same time

    Ok so basically i have a form in which I've assigned all my auto filters to a button, these auto filters run when a check box is clicked and then the button is pressed.

    HOWEVER the only auto filter that runs is the latest one i assigned to the button.

    1.png

    For example in this image the SEND support auto filter is the only one which would run as it was the latest auto filter in my code.

    Here's the code i assigned to the apply button, basically it's just a bunch of IF statements to see if each check box is ticked:

    Please Login or Register  to view this content.



    In a nutshell i want to be able to run all of the ticked auto filters at the same time, but cant really think of a way to do this, other than possibly creating about a billion IF statements

    I cannot upload the actual sheet, sorry.

    If it would help i could make a demo version

  2. #2
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: User form: with check boxes how do i allow MULTIPLE auto filters to run at the same ti

    Quote Originally Posted by liamfrancis2013 View Post
    If it would help i could make a demo version
    With that we had to start.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: User form: with check boxes how do i allow MULTIPLE auto filters to run at the same ti

    Put your checkboxes into frames, and caption the frames to correspond with your field headers. Then you can use something like this:

    Please Login or Register  to view this content.
    Example attached.
    Attached Files Attached Files
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: User form: with check boxes how do i allow MULTIPLE auto filters to run at the same ti

    I really like that solution after having a play, the only problem is that it seems to be reliant on having at least one check box ticked in each frame for it to run, and ideally i'd want it to be able to run even if a frame of text boxes remained unticked.

  5. #5
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: User form: with check boxes how do i allow MULTIPLE auto filters to run at the same ti

    Quote Originally Posted by liamfrancis2013 View Post
    I really like that solution after having a play, the only problem is that it seems to be reliant on having at least one check box ticked in each frame for it to run, and ideally i'd want it to be able to run even if a frame of text boxes remained unticked.
    Edited to handle no selected checkboxes (amended code highlighted in red):
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Olly; 07-01-2016 at 01:01 PM.

  6. #6
    Forum Contributor
    Join Date
    01-04-2016
    Location
    Newcastle
    MS-Off Ver
    2016
    Posts
    107

    Re: User form: with check boxes how do i allow MULTIPLE auto filters to run at the same ti

    Thanks, great solution

+ 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. how to check if a user form item is available on run-time
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2016, 05:22 PM
  2. Populate text boxes on user form, from combo box on same user form
    By Richardswaim in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 07-03-2016, 09:35 AM
  3. How to use an excel user form with check boxes that will hide columns when selected.
    By FANNINGT in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2015, 06:53 PM
  4. I need a code for presence check to check multiple text boxes and combo boxes
    By Lee_wwfc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2013, 01:53 PM
  5. Excel VBA to generate check boxes and restrict user to tick on the 3 boxes in a row
    By rhodalynn.rona in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-06-2012, 05:55 AM
  6. Replies: 3
    Last Post: 05-11-2006, 01:55 PM
  7. [SOLVED] Filters and Check Boxes
    By Steved in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-26-2005, 09:06 PM

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