excel autofilter vba code example
Example: excel vba activate autofilter
If Sheets("Sheet1").AutoFilterMode = False Then
Sheets("Sheet1").Range("A1").AutoFilter
End if
If Sheets("Sheet1").AutoFilterMode = False Then
Sheets("Sheet1").Range("A1").AutoFilter
End if