exceltadpole
Board Regular
- Joined
- Jan 14, 2004
- Messages
- 108
I am using 3 filters:
Selection.AutoFilter Field:=1, Criteria1:="=*PAID*", Operator:=xlAnd
to select all the rows which contain PAID in column 1
Selection.AutoFilter Field:=1, Criteria1:="<>*PAID*", Operator:=xlAnd
to select all the rows which do not contain PAID in column 1
Selection.AutoFilter Field:=3, Criteria1:="=*INVOICE*", Operator:=xlAnd
to select all the rows which contain INVOICE in column 3
How do I combine these into 2 filters:
to select all the rows which contain INVOICE in column 3 AND contain PAID in column 1
to select all the rows which contain INVOICE in column 3 AND do not contain PAID in column 1
(I don't know how to make the auto-filter work with different columns. Meaning field 1 and 3.)
Selection.AutoFilter Field:=1, Criteria1:="=*PAID*", Operator:=xlAnd
to select all the rows which contain PAID in column 1
Selection.AutoFilter Field:=1, Criteria1:="<>*PAID*", Operator:=xlAnd
to select all the rows which do not contain PAID in column 1
Selection.AutoFilter Field:=3, Criteria1:="=*INVOICE*", Operator:=xlAnd
to select all the rows which contain INVOICE in column 3
How do I combine these into 2 filters:
to select all the rows which contain INVOICE in column 3 AND contain PAID in column 1
to select all the rows which contain INVOICE in column 3 AND do not contain PAID in column 1
(I don't know how to make the auto-filter work with different columns. Meaning field 1 and 3.)