+ Reply to Thread
Results 1 to 7 of 7

Macro for selecting multiple filtered criteria

  1. #1
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Macro for selecting multiple filtered criteria

    Hello,

    I'm having an issue running the following macro:

    Please Login or Register  to view this content.
    But it's only displaying the "TPC FLAT*", not anything else. Is the wildcard(*) causing this issue?

    Thank you,

    -Justair07

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro for selecting multiple filtered criteria

    Like Filter Operators of OR and AND, the wild card works with 2 choices(Options) ONLY.

  3. #3
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: Macro for selecting multiple filtered criteria

    So is possible to do what I'm attempting in another way?

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro for selecting multiple filtered criteria

    I do not know what are you trying to do.

    The array works with any number of options but if you have a wild card, you may put two wildcards in one line at a time.
    You then put in another line with 2 wild cards below.
    The concept is similar to filtering by different columns, so you put in each column criteria on a separate line.

  5. #5
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: Macro for selecting multiple filtered criteria

    Here is my poor attempt. I'm trying to make it so that only "NPC AWG*", "SPC AWG*", and "TPC AWG*" is filtered to show.

    Please Login or Register  to view this content.
    Attached is a sample workbook as well.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro for selecting multiple filtered criteria

    Hmm!
    Your code is correct and my suggestion will not work with selecting the visible cells as the last * line will show visible cells only.

    I was think you want to copy or delete visible cells once the first * filter is on, and then remove the filter,redo with the second wild card and copy or delete again.

    I have seen people use a helper column to get around, but can not seem to remember the steps.

  7. #7
    Forum Contributor
    Join Date
    01-08-2013
    Location
    Jacksonville, Fl
    MS-Off Ver
    Excel 2016
    Posts
    355

    Re: Macro for selecting multiple filtered criteria

    Wow!

    This is a lot more complicated than I thought it would be. There must be an easier way. I'm obsessed now.

+ 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. Selecting a cell from filtered data within a macro
    By excelloser in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-10-2012, 05:25 PM
  2. [SOLVED] Selecting filtered cells for printing macro
    By MacGyver7640 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2012, 03:38 PM
  3. selecting using multiple criteria
    By agore03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2008, 03:36 PM
  4. Selecting multiple criteria HELP!!! :(
    By alonge in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-13-2005, 09:46 AM
  5. [SOLVED] [SOLVED] Numerous OR criteria in a Filtered Macro
    By Andy Wilkinson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2005, 03: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