Hi,
I have this code (below) that remove the fill color after update those 5 cells. I need that when I save the worksheet, those 5 cells return with the fill color. Is this possible?
Code:
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("J9,J12,C14,E28,E29")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
If Target.Value = "" Then
Target.Interior.ColorIndex = 6
Else
Target.Interior.ColorIndex = xlNone
End If
End If
End Sub
Thanks in advance
I have this code (below) that remove the fill color after update those 5 cells. I need that when I save the worksheet, those 5 cells return with the fill color. Is this possible?
Code:
Private Sub Worksheet_Change(ByVal Target As Range) If Not Intersect(Target, Range("J9,J12,C14,E28,E29")) Is Nothing Then
If Target.Count > 1 Then Exit Sub
If Target.Value = "" Then
Target.Interior.ColorIndex = 6
Else
Target.Interior.ColorIndex = xlNone
End If
End If
End Sub
Thanks in advance