+ Reply to Thread
Results 1 to 4 of 4

Using AutoFilter to Filter For Multiple Criteria in VBA

  1. #1
    Registered User
    Join Date
    06-13-2017
    Location
    Tucson, United States
    MS-Off Ver
    2013
    Posts
    20

    Using AutoFilter to Filter For Multiple Criteria in VBA

    Hey,

    I'm not sure if this is possible.

    I'd like to filter specific combinations of different fields, months and years. So for example,
    Row 11 Row 12
    March 2017 Or
    June 2016 Or
    January 2011

    So anything with those 3 combinations would be visible. Anyone know how I'd be able to do it? Thanks

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using AutoFilter to Filter For Multiple Criteria in VBA

    combine those values and filter on the combined values.

    e.g. c1 = a1&" "&b1
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    06-13-2017
    Location
    Tucson, United States
    MS-Off Ver
    2013
    Posts
    20

    Re: Using AutoFilter to Filter For Multiple Criteria in VBA

    Beautiful, thank you.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Using AutoFilter to Filter For Multiple Criteria in VBA

    Thanks for the rep.

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. VBA Autofilter multiple sheets: Increase filter for more than 2 criteria
    By Darms in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-19-2013, 04:38 PM
  2. [SOLVED] Autofilter with multiple criteria - how to ignore blank criteria
    By MOONDRIFT47 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-31-2012, 12:20 PM
  3. help using the AutoFilter to Filter mulitple criteria
    By twiggywales in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2012, 04:32 AM
  4. Filter Multiple Numbers with AutoFilter
    By natepen in forum Excel General
    Replies: 2
    Last Post: 06-11-2007, 10:27 AM
  5. [SOLVED] Get the list from Autofilter after filter some criteria
    By hanawakun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2005, 04:05 PM
  6. [SOLVED] AutoFilter Pull Criteria from one sheet and custom filter on other
    By dtg_denver in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-20-2005, 06:05 PM
  7. [SOLVED] Improve autofilter combine conditionals with filter criteria
    By dmcauli3 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-13-2005, 01:06 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