+ Reply to Thread
Results 1 to 5 of 5

Remove Autofilter

  1. #1
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Exclamation Remove Autofilter

    I want to remove Autofilter from all sheets of my workbook. No matter whatever the ranges the sheet might have.

    At present i m trying this...
    Please Login or Register  to view this content.
    But it does not remove for all... Please help.

  2. #2
    Registered User
    Join Date
    08-24-2005
    Posts
    33
    which ones does it not remove from?

  3. #3
    Ron de Bruin
    Guest

    Re: Remove Autofilter

    Hi ilyaskazi

    Use AutoFilterMode

    Sub test()
    Dim curVis As Long
    Dim sh As Worksheet
    For Each sh In ThisWorkbook.Worksheets
    With sh
    curVis = .Visible
    .Visible = xlSheetVisible
    .AutoFilterMode = False
    .Visible = curVis
    End With
    Next sh
    End Sub


    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "ilyaskazi" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I want to remove Autofilter from all sheets of my workbook. No matter
    > whatever the ranges the sheet might have.
    >
    > At present i m trying this...
    >
    > Code:
    > --------------------
    > For Each sh In ActiveWorkbook.Worksheets
    > ' Open hidden sheet
    > If sh.Visible <> xlSheetVisible Then
    > sh.Visible = True
    > sh.EnableAutoFilter = False
    > End If
    > sh.EnableAutoFilter = False
    > Next sh
    > --------------------
    >
    > But it does not remove for all... Please help.
    >
    >
    > --
    > ilyaskazi
    > ------------------------------------------------------------------------
    > ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969
    > View this thread: http://www.excelforum.com/showthread...hreadid=401925
    >




  4. #4
    Forum Contributor
    Join Date
    06-02-2005
    Location
    India
    MS-Off Ver
    2007
    Posts
    138

    Question

    What does these all 3 option means actually??...

    1- EnableAutoFilter
    2- FilterMode
    3- AutoFilterMode

  5. #5
    Ron de Bruin
    Guest

    Re: Remove Autofilter

    Hi ilyaskazi

    In the VBA editor select EnableAutoFilter or FilterMode or AutoFilterMode in the code
    And press F1

    You get all the information you need

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "ilyaskazi" <[email protected]> wrote in message
    news:[email protected]...
    >
    > What does these all 3 option means actually??...
    >
    > 1- EnableAutoFilter
    > 2- FilterMode
    > 3- AutoFilterMode
    >
    >
    > --
    > ilyaskazi
    > ------------------------------------------------------------------------
    > ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969
    > View this thread: http://www.excelforum.com/showthread...hreadid=401925
    >




+ 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