+ Reply to Thread
Results 1 to 5 of 5

AutoFilter removal

Hybrid View

  1. #1
    David
    Guest

    AutoFilter removal

    Greetings and TIA for your time
    In my code, I want to test to see if AutoFilter is there on the activesheet.
    If it is ,I need to switch it off, do something, then re apply the AutoFilter.
    --
    David

  2. #2
    Forum Contributor
    Join Date
    04-11-2005
    Location
    London
    Posts
    259
    Sub isItOn()
        Dim isOn As Boolean
        If Worksheets("Sheet1").AutoFilterMode Then
            isOn = True
        Else
            isOn = False
        End If
        MsgBox "AutoFilterMode is " & isOn
    End Sub
    The above is taken from Microsoft's help files.
    Add in
    ActiveSheet.EnableAutoFilter = True
    etc...and you're there.
    Martin Short

  3. #3
    David
    Guest

    Re: AutoFilter removal

    Thanks Martin
    --
    David


  4. #4
    John Green
    Guest

    Re: AutoFilter removal

    ActiveSheet.AutoFilterMode

    This returns True or False to indicate the status of AutoFilter

    John Green

    "David" <[email protected]> wrote in message
    news:[email protected]...
    > Greetings and TIA for your time
    > In my code, I want to test to see if AutoFilter is there on the
    > activesheet.
    > If it is ,I need to switch it off, do something, then re apply the
    > AutoFilter.
    > --
    > David




  5. #5
    David
    Guest

    Re: AutoFilter removal

    Thanks John
    --
    David


+ 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