I've looked at several similar examples of the issue I'm having, but I'm still missing something.
I want to change the color of a frame to red when a cell value is NOT "on hold" and when another cell value is either NOT "ND" or NOT over 100%. Otherwise, I want the frame to stay the original color (the RGB definition).
I've tried variations like this portion of code:
But the solution continues elude me.
I want to change the color of a frame to red when a cell value is NOT "on hold" and when another cell value is either NOT "ND" or NOT over 100%. Otherwise, I want the frame to stay the original color (the RGB definition).
Code:
If Worksheets("Details").Range("D16") <> "On Hold" Then
If Worksheets("Details").Range("O13") = "ND" Or Worksheets("Details").Range("O13") > 0.1 Then
Me.DaysFrame.BorderColor = vbRed
Else
Me.DaysFrame.BorderColor = RGB(128, 128, 128)
End If
End If
I've tried variations like this portion of code:
Code:
If Worksheets("Details").Range("D16") <> "On Hold" And (Worksheets("Details").Range("O13") = "ND" Or Or Worksheets("Details").Range("O13") > 0.1) Then...