+ Reply to Thread
Results 1 to 3 of 3

VBA to check if filters are on

  1. #1
    Registered User
    Join Date
    10-09-2011
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    VBA to check if filters are on

    Hi

    I'm looking for simple VBA code to check if the Active Sheet has Autofilter filters that are active - - if there are any active filters I intend to use the Show All Data property

    Cheers

    Johnno1

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: VBA to check if filters are on

    You can check the AutoFilterMode for the active sheet ...

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: VBA to check if filters are on

    If you trap for the error, you won't need to check whether or not there are any filters:
    Please Login or Register  to view this content.
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

+ 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