+ Reply to Thread
Results 1 to 4 of 4

Checking if filter is applied

  1. #1
    Forum Contributor
    Join Date
    10-06-2012
    Location
    Basel, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    157

    Checking if filter is applied

    Hello,
    I am analyzing a lot of data with Excel, and it happens very often that I get wrong results, because I forget that filter has been applied. Is there a way (a macro) to automatically check if filter has been applied and show a warning message e.g. "Filter has been applied, do you want to clear the filter? Yes / No".

    Thank you for your help.
    Niclal

  2. #2
    Forum Contributor
    Join Date
    10-19-2012
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Checking if filter is applied

    hi niclal,

    Pls check the below code
    [code]
    If ActiveSheet.AutoFilterMode Then
    MsgBox "AutoFilter: on"
    Else
    MsgBox "AutoFilter: off"
    End If
    [\code]

    Thanks
    RoyalRajan

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Checking if filter is applied

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    10-06-2012
    Location
    Basel, Switzerland
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Checking if filter is applied

    Hi All,
    This is just checking whether or not an autofilter has been applied, but not if there are some filtered columns.
    Another idea is to highlight the column where a filter has been applied.
    N
    Last edited by Niclal; 12-09-2014 at 08:00 AM.

+ 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. VBA to find first row under header, after filter has been applied.
    By Chris Acheson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2014, 11:50 AM
  2. [SOLVED] ShowAll comes up with error despite there being a filter applied...
    By PinkMafia14 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-05-2013, 10:34 AM
  3. Replies: 0
    Last Post: 04-18-2011, 02:22 PM
  4. Adding a new row to a list when filter is applied
    By Macster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2009, 04:20 AM
  5. [SOLVED] how do i identify first and last row once filter applied
    By pete the greek in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-21-2006, 12:25 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