+ Reply to Thread
Results 1 to 7 of 7

Advance Filter Not working Via VBA

  1. #1
    Registered User
    Join Date
    10-31-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    8

    Advance Filter Not working Via VBA

    Dear All,
    I am rather new to excel programming. My Advance filter code not working. . I am attaching the xlm file. Could someone tell me where i am going wrong.
    Thanks
    Attached Files Attached Files
    Last edited by mayoorsubbu; 06-13-2017 at 09:33 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,875

    Re: Advance Filter Not working Via VBA

    Use header and value as criteria range:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    10-31-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    8

    Re: Advance Filter Not working Via VBA

    Thank u Kaper ...the macro is not fltering any record. its merely picking all records.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,875

    Re: Advance Filter Not working Via VBA

    Nope, after changing Z2 to Z1:Z2 it filters out only 16 records (out of 379) where
    ProjBuildUp = PDSAS-Cap (DRDO)
    It was just copying all records in case of your code with only Z2.
    If you want to use also other criteria (columns V:Z) change code accordingly:
    Please Login or Register  to view this content.
    PS. Just to make sure you do it right - the above is a line in your code. Not whole macro.

  5. #5
    Registered User
    Join Date
    10-31-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    8

    Re: Advance Filter Not working Via VBA

    Kaper I appreciate your prompt help, but the macro does not seem to work. Is it about some settings in Excel. Thank u

  6. #6
    Registered User
    Join Date
    10-31-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    8

    Re: Advance Filter Not working Via VBA

    Its working now. Thank u

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,875

    Re: Advance Filter Not working Via VBA

    Glad to hear that and thanks for marking thread as Solved and for Reputation point :-)

+ 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. Help: Advance Filter
    By Shermaine2010 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-04-2016, 11:38 AM
  2. [SOLVED] Cant filter 2 columns even with advance filter
    By pingpong1 in forum Excel General
    Replies: 19
    Last Post: 07-03-2015, 04:40 PM
  3. [SOLVED] Advance Filter help
    By buwa84 in forum Excel General
    Replies: 5
    Last Post: 07-16-2013, 04:46 PM
  4. Advance Filter
    By tt388 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-28-2008, 07:32 AM
  5. Advance Filter
    By betmck in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2007, 02:48 PM
  6. Advance filter search does not filter an exact match
    By cfiiland in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-10-2005, 08:05 AM
  7. advance filter
    By DANmcc in forum Excel General
    Replies: 2
    Last Post: 04-20-2005, 06: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