In VBA programming one of the rows I do filtering instruction
1) With Columns("M:M")
.AutoFilter Field:=1, Criteria1:="<>0", Operator:=xlAnd
End With
One of the possibility later is to undo the filtering, so I do the instruction
2. ActiveSheet.ShowAllData
If I do the instruction (2) second time, it will give the error.
I want to give the command :
DO undo filtering with “ActiveSheet.ShowAllData” just in case IF the filtering is ON.
What is the syntax for this?
Can anybody help me?
Thanks
1) With Columns("M:M")
.AutoFilter Field:=1, Criteria1:="<>0", Operator:=xlAnd
End With
One of the possibility later is to undo the filtering, so I do the instruction
2. ActiveSheet.ShowAllData
If I do the instruction (2) second time, it will give the error.
I want to give the command :
DO undo filtering with “ActiveSheet.ShowAllData” just in case IF the filtering is ON.
What is the syntax for this?
Can anybody help me?
Thanks