+ Reply to Thread
Results 1 to 4 of 4

Advance filter dynamic criteria range

  1. #1
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Advance filter dynamic criteria range

    Hi All,

    I was wondering if it is possible to reference a dynamic criteria range when running an advanced filter in VBA.
    What I have is this:

    Please Login or Register  to view this content.
    The criteria is on a different sheet named "List". There is multiple criteria within the range.
    I'm looking to dynamically reference that criteria in VBA so I don't have to change the hard coded value reference every time the list criteria changes.

    Any help would be greatly appreciated, thanks!

  2. #2
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Advance filter dynamic criteria range

    Bumping along

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Advance filter dynamic criteria range


    Hi !

    Range("A:H").AdvancedFilter xlFilterInPlace, Worksheets("List").Cells(1).CurrentRegion

    Do you like it ? So thanks to click on bottom left star icon « Add Reputation » !

  4. #4
    Forum Contributor Pierce Quality's Avatar
    Join Date
    07-29-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    221

    Re: Advance filter dynamic criteria range

    Thanks Marc that did the trick!

    Marking this as solved, thanks!

+ 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. Advance Filter - define Dynamic CopyToRange below last row of existing data
    By pci1239 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-23-2015, 03:41 PM
  2. Advance Filter Criteria
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  3. [SOLVED] Advance Filter Criteria
    By Jordan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. [SOLVED] Advance Filter Criteria
    By Jordan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] Advance Filter Criteria
    By Jordan in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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