Blues Clues
New Member
- Joined
- Feb 10, 2018
- Messages
- 2
Hello, I've been researching for a while but haven't been able to find an explanation. I know the issue is with the "not equal to" part but I don't know why.
Why does the code updates the XYZ cell on column B when the cells on column C are "CHECKED" or "REVISED". The intention with the code is for it to not update the field when cells on col C are CHECKED or REVISED.
For i = 2 To LastRow
If Range("B" & i).Value = "XYZ" And (Range("C" & i).Value <> "CHECKED" Or Range("C" & i).Value <> "REVISED") Then
Range("C" & i).Value = "PENDING"
Else
...
Why does the code updates the XYZ cell on column B when the cells on column C are "CHECKED" or "REVISED". The intention with the code is for it to not update the field when cells on col C are CHECKED or REVISED.
For i = 2 To LastRow
If Range("B" & i).Value = "XYZ" And (Range("C" & i).Value <> "CHECKED" Or Range("C" & i).Value <> "REVISED") Then
Range("C" & i).Value = "PENDING"
Else
...