Objective is to filter for rows where
- Cell colour not equal to RGB(255, 255, 0) AND
- Cell value not equal to "A"
I have the following code, but it seems to only filter for the first condition:
Sub code()
ActiveSheet.Range("$A$1:$JI5000").AutoFilter Field:=1, Criteria1:=RGB(255, 255, 0), Operator:=xlFilterCellColor, Criteria2:="<>A"
End Sub
As you can see, I am also struggling to code "not equal to RGB(255, 255, 0)" so I've coded in to show everything that is not highlighted. Could use some help on this as well! Thank you.