I have been working on this on and off, was put on the back burner until now. The previous thread is linked here - https://www.mrexcel.com/forum/excel...et-based-upon-cell-condition.html#post4958617.
The first part of the code is working fine. What I'm trying to accomplish now is to put the rows colored green back to their alternating colors if the word "CLOSED" is removed from the cell. The code below is where I'm at so far; however, it isn't putting the rows back to the original colors. Wondering is someone could help me out...?
The first part of the code is working fine. What I'm trying to accomplish now is to put the rows colored green back to their alternating colors if the word "CLOSED" is removed from the cell. The code below is where I'm at so far; however, it isn't putting the rows back to the original colors. Wondering is someone could help me out...?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If (Target.Row - 0) Mod 8 = 0 And Target.text = "CLOSED" Then
Select Case UCase(Format(Target.offset(-2), "ddd"))
Case "SAT"
Target.offset(4).Interior.Color = 5296274
Case Else
Target.offset(1, 0).Resize(4, 3).Interior.Color = 5296274
End Select
Else
If (Target.Row - 0) Mod 8 = 1 And Target.text <> "CLOSED" Then
Select Case UCase(Format(Target.offset(-2), "ddd"))
Case "SAT"
Target.offset(4).Interior.Color = 2
Case Else
Target.offset(1, 0).Resize(4, 3).Interior.Color = 13759225
End Select
End If
End If
End Sub