Skip to content

Instantly share code, notes, and snippets.

@danwagnerco
Created July 12, 2014 22:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danwagnerco/698c70d98f9811080293 to your computer and use it in GitHub Desktop.
Save danwagnerco/698c70d98f9811080293 to your computer and use it in GitHub Desktop.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'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