I have the following code to change a cell's color based on certain conditions. I am comparing the values of two cells on the same worksheet. I have tried this with If Else If, seperate If statements and Case statements but cannot get it to work. Any clues would be appreciated and Happy Holidays!
Code:
Select Case value
Case Range("N" & j).value = "0"
Range("N" & j).Interior.Color = RGB(255, 0, 0)
Range("N" & j).BorderAround Weight:=xlThin
Range("N" & j).BorderAround xlContinuous
Case Range("N" & j).value - Range("G" & j).value <= "100"
Range("N" & j).Interior.Color = RGB(255, 192, 0)
Range("N" & j).BorderAround Weight:=xlThin
Range("N" & j).BorderAround xlContinuous
Case Range("N" & j).value < Range("G" & j).value
Range("N" & j).Interior.Color = RGB(255, 255, 0)
Range("N" & j).BorderAround Weight:=xlThin
Range("N" & j).BorderAround xlContinuous
End Select