Hi Team,
I am Unable to apply autofilter <>0 on a single column.
Below is my attempted code, when tried applying <>0 , I loose previous autofilter. plz assist. Thanks.
Below is my Column with data in it.
Thanks
mg
I am Unable to apply autofilter <>0 on a single column.
Below is my attempted code, when tried applying <>0 , I loose previous autofilter. plz assist. Thanks.
VBA Code:
Sub Apply_Filter()
With Range("$A$1:$A$20")
.AutoFilter Field:=1, Criteria1:="<500", Operator:=xlAnd, Criteria2:=">-500"
.AutoFilter Field:=1, Criteria1:="<>0"
End With
End Sub
Below is my Column with data in it.
Book1 | |||
---|---|---|---|
A | |||
1 | Amount | ||
2 | -121 | ||
3 | 391 | ||
4 | -408 | ||
5 | 891 | ||
6 | 948 | ||
7 | -500 | ||
8 | 386 | ||
9 | -427 | ||
10 | 33 | ||
11 | 942 | ||
12 | 870 | ||
13 | -261 | ||
14 | 979 | ||
15 | 955 | ||
16 | 0 | ||
17 | 0 | ||
18 | 400 | ||
19 | -600 | ||
Sheet1 |
Thanks
mg