Question : vba check if filter is on and turn off
Answered by : joepy-riba
Public Sub ClearFilter()
If ActiveSheet.FilterMode = True Then ActiveSheet.ShowAllData
End If
End Sub
Source : https://www.automateexcel.com/vba/turn-autofilter-on-off/ | Last Update : Thu, 19 May 22