+ Reply to Thread
Results 1 to 2 of 2

Coding advanced filter range instead of referenceing cells in sheet

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    63

    Coding advanced filter range instead of referenceing cells in sheet

    I set up an advanced filter for a sheet(QTD_710_NEG sheet). I can't figure out how to code the Range criteria directly into the macro instead of having to create the range Filter Criteria sheet, populate it with the criteria, and reference those cells.

    Here is the code as it currently sits
    Please Login or Register  to view this content.

    How can I hard code the information on the "Filter Criteria" sheet into the advanced filter instead of creating the "Filter Criteria Sheet", populating it, and then referencing it the advanced filter Range

    I have attached a sample if needed.Sample.xlsx

    Thanks,

    Craig

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Coding advanced filter range instead of referenceing cells in sheet

    you can't. it has to be an actual range somewhere, even if it's only two cells.
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ Reply to 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