Autofilter
Apologies... I meant column 14
Nigel, that gives me rows that have a column 14 value less than zero and a
column 18 that doesn't equal 8... I would like it to show, for example, if a
row had a postive value in column 14 and a value of 7 in column 18 as well.
"Tom Ogilvy" wrote:
Criteria between each column Creates a LOGICAL AND condition.
You would need to use a formula in a dummy column to establish the OR
relationship and then filter on that column.
Or use an Advanced filter.
--
Regards,
Tom Ogilvy
"John" wrote in message
...
If I want to filter the data so that any row that has a value greater than
0
in column 14 OR does not have a value of 8 in column 18... why does this
code
not work... It gives me only those rows with values less than zero in
column
14 and hides every row that does not equal 8 in column 18!
Sheets("CORPS").Select
Selection.AutoFilter Field:=14, Criteria1:="<0", Operator:=xlOr
Selection.AutoFilter Field:=18, Criteria1:="<8"
Thanks for the help
|