+ Reply to Thread
Results 1 to 2 of 2

Project using Advanced filter, Userform, and Macros

  1. #1
    Registered User
    Join Date
    03-01-2018
    Location
    California
    MS-Off Ver
    2016
    Posts
    20

    Project using Advanced filter, Userform, and Macros

    The best way I thought to explain what I'm trying to achieve was by making a mockup of my desired end results. I can set the advanced filter up( or at least I have once before with success). What I really need help with is setting up the command button 1 as well as finding the right path to take for "multi-select" rows. Any help would be greatly appreciated.

    The mockup has comments further explaining what I would like to achieve.

    Thanks in advanced,
    LTSSB
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Project using Advanced filter, Userform, and Macros

    I am not quite sure this is what you want, but I am taking advantage of Excel Tables and slicers to accomplish what I think the requirement is. I converted your data into an excel table. Here is more information on excel tables: http://www.utteraccess.com/wiki/Tables_in_Excel.

    One of the advantages of Excel Tables not mentioned in the wiki is that they can also be assigned slicers (glorified filters). Do a web search for slicers. They are very easy to set up and are very intuitive. The slicers take the place of your advance filters. They also "cascade" meaning that if you make a selection in one slicer, it affects the available selections in other slicers. For example: if you select Team Alpha, some of the other slicers' items will be grayed out meaning they are not available for selection.

    If you check over on the Data Tab, you will see that the table is filtered in accordance with the slicer selections. You can do multiple selects using the CTRL and SHIFT keys. You can clear an individual slicer by clicking on the funnel icon on the top left.

    The Copy Data button copies over the visible rows in the data table into the results table.

    The Clear Source button clears the filters on the data table and consequently (as in automatically, I did not have to write code for it) clears the slicers that look at the table. Slicers and table filters work together, set a table filter and it sets the slicer; set a slicer and it sets the table filter.

    Excel does all the "heavy lifting" - the code is very short.
    Please Login or Register  to view this content.
    The ModClearTable5 module is some "Standard" code I wrote to clear table filters and clear table contents. I use it frequently so I saved it into an importable module.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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. Multiple advanced filter macros on same page
    By jeetkapadia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-25-2017, 11:33 AM
  2. Advanced Filter displayed on Userform's Listbox
    By brainzlp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-07-2016, 04:57 AM
  3. Macros and advanced filter
    By brian807 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2016, 02:17 PM
  4. [SOLVED] Advanced Filter Macros - Inconsistant Results
    By TheScott in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-03-2015, 11:04 AM
  5. Running an Advanced Filter using Userform check boxes
    By gr6au in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2011, 04:51 PM
  6. Userform: Make a advanced filter script "filter" when a combobox is altered
    By Zheno in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-09-2010, 04:06 AM
  7. Advanced Filter + Several Macros
    By excel_owns_me in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2007, 02:52 AM

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