+ Reply to Thread
Results 1 to 4 of 4

Reset All Auto Filters for All Worksheets

Hybrid View

  1. #1
    Registered User
    Join Date
    07-22-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    71

    Reset All Auto Filters for All Worksheets

    Hi There,

    I need your help.

    I would like to, at the click of a button,

    to reset all auto filters to "All" accross all of my worksheets (Sheet1 and Sheet2) in Excel

    How can this be done?

    Any help with this is greatly appreciated.

    Much thanks for all your help in advance,

    Cheers

    Jay.
    Last edited by jason_kelly; 12-21-2010 at 10:20 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,978

    Re: Reset All Auto Filters for All Worksheets

    For example:
    
    Sub ShowAll()
        Dim wks As Worksheet
        For Each wks In ActiveWorkbook.Worksheets
            With wks
                If .AutoFilterMode Then
                    If .FilterMode Then .ShowAllData
                End If
            End With
        Next wks
    End Sub
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    07-22-2010
    Location
    Ontario
    MS-Off Ver
    Excel 2003
    Posts
    71

    Re: Reset All Auto Filters for All Worksheets

    Thanks so much for the help Rompers.

    Works great!

    Cheers,

    Jay

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,978

    Re: Reset All Auto Filters for All Worksheets

    Glad to help - please don't forget to mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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