User Tools

Site Tools


excel:macro_turn_filters_off

This is an old revision of the document!


Excel - Macro Turn Filters off

' Removes AutoFilter if one exists.
Sub TurnFilterOffAllSheets()
 
    Dim ws As Worksheet
 
    For Each ws In ActiveWorkbook.Worksheets
        With ws
            .AutoFilterMode = False
        End With
    Next ws
 
End Sub
excel/macro_turn_filters_off.1468222438.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki