Closed Thread
Results 1 to 6 of 6

Displaying Multiple Criteria from Autofilter

  1. #1
    Registered User
    Join Date
    05-13-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    4

    Displaying Multiple Criteria from Autofilter

    In Excel 2007 you can filter on multiple values rather than just two. However, VBA only has a Criteria2 property for a filter -- so you can't display more than two filter criterias even if you picked, for example, "1 OR 2 OR 3," etc.

    Is there any way to get this data in Excel 2007? The tool tip that you see when hovering over the autofilter arrow displays just what I need, so there's some way of doing this, though it may not be accessible via VBA.


    I really appreciate anyone's help. I filter many columns at the same time all day long at work and being able to quickly see the parameters would help enormously.

  2. #2
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: Displaying Multiple Criteria from Autofilter

    Technically it can only filter based on 2 criteria. What excel does it setup a array for ones that you check/uncheck items.

    Example:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-13-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Displaying Multiple Criteria from Autofilter

    Thanks, Dulanic.

    Is there a way for me to make to access the values in the array of selected filter values?

    In the end, I want to display every criteria in each filtered column.

  4. #4
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: Displaying Multiple Criteria from Autofilter

    Not sure I follow, once the macro would be run, the rest would be just like if you did it by hand, it would have all the values if you used the drop down etc....

  5. #5
    Registered User
    Join Date
    05-13-2010
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Displaying Multiple Criteria from Autofilter

    I'm trying to display the values that I've already filtered by hand -- not execute a filter that I define in the macro. I work with very large spreadsheets and, after doing all sorts of complicated filters, it would be incredibly helpful to simply run a macro and see what the "query" or total filter was rather than looking through all columns. Does that make sense?

  6. #6
    Registered User
    Join Date
    07-09-2011
    Location
    Goodwick, Wales
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Displaying Multiple Criteria from Autofilter

    Quote Originally Posted by Sinclair View Post
    I'm trying to display the values that I've already filtered by hand -- not execute a filter that I define in the macro. I work with very large spreadsheets and, after doing all sorts of complicated filters, it would be incredibly helpful to simply run a macro and see what the "query" or total filter was rather than looking through all columns. Does that make sense?
    Did you ever succeed with this? I need to do the same.

Closed 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