I have a macro that clears all filters which works great if there are filters to clear.
Otherwise I get an error message.
Sub ClearFilters()
'
' ClearFilters Macro
'
ActiveSheet.ShowAllData
End Sub
What can I add so if no filters are selected it will do nothing?
Otherwise I get an error message.
Sub ClearFilters()
'
' ClearFilters Macro
'
ActiveSheet.ShowAllData
End Sub
What can I add so if no filters are selected it will do nothing?