Created
July 12, 2014 22:06
-
-
Save danwagnerco/698c70d98f9811080293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' | |
'INPUT : Sheet, the worksheet on which you'd like all filters cleared | |
'DESCRIPTION : this sub will remove all filters on a worksheet safely | |
' | |
Public Sub ClearAllFilters(Sheet As Worksheet) | |
With Sheet | |
.AutoFilterMode = False | |
If .FilterMode = True Then | |
.ShowAllData | |
End If | |
End With | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment