macro to filter out data
Thanks Jon,
But this allows me to select only data that met the criteria. How do I
inverse/reverse the selection. I need to filter out these data.
My requirement, get data in Field A which is not S or N; and above 10
in Field B
(Field A != 'S' or Field A != 'N') and Field B = 10
JonR wrote:
Sub Filter()
ActiveWindow.ScrollRow = 1
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:="=S*", Operator:=xlOr, _
Criteria2:="=N*"
Selection.AutoFilter Field:=2, Criteria1:="10"
End Sub
|