+ Reply to Thread
Results 1 to 7 of 7

Clearing all data filters by macro

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    176

    Clearing all data filters by macro

    I have the following code which works fine except that sometimes I have been filtering the lists of data on some pages so when the code copies through to my overview sheet it misses some of the data.

    What I am after is a way to automatically clear all filters from all pages (inc overview) when I select the overview sheet.

    Please Login or Register  to view this content.
    Any help will be much appreciated as ever.

    Andrew
    Last edited by Andrew-Mark; 08-01-2011 at 07:03 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Clearing all data filters by macro

    A technique you can adapt would simply be:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    176

    Re: Clearing all data filters by macro

    Thank you for your reply; that would be an acceptable way of doing it but I am looking for the holy grail and would like the 'filters' to still be in place but all the filter criteria removed.

    Is this possible?

  4. #4
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: Clearing all data filters by macro

    Perhaps

    Please Login or Register  to view this content.
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

  5. #5
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    176

    Re: Clearing all data filters by macro

    I tried that but it doesn't seem to work for me.
    I can only presume I am doing something wrong; can you see what?

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    176

    Re: Clearing all data filters by macro

    Finally figured it out.

    Thanks for the help as always.

    In case you were interested...

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Clearing all data filters by macro

    Quote Originally Posted by jbeaucaire View Post
    a technique you can adapt would simply be:
    Please Login or Register  to view this content.
    this really helps!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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