I have this VBA code that works for two criteria, but not three.
- How do I get it to auto-filter for three or more filters?
- How do I change the range to last row, instead of adding the I8000? I tried to change to"$A$4:$I & lastRow" but didn't work for me.
Rich (BB code):
.Range("$A$4:$I$8000").AutoFilter Field:=3, Criteria1:="=apples", Operator:=xlOr, Criteria2:="=oranges", Operator:=xlOr, Criteria3:="=kiwi"
Last edited by a moderator: