This one is beating me..... I have a macro on the sheet where anytime a change is made, it enters this sub. That sub works perfectly. The sub below is my problem. The sub below is highlighting cells with ColorIndex = xlNone with ColorIndex = 42
I cannot figure out why it is entering that If statement. Anyone have any guidance here?
Sub Date_Highlights(Rng As Range)
If Rng.Interior.ColorIndex = xlNone Then
Rng.Interior.ColorIndex = 46
Else
End If
If Rng.Interior.ColorIndex = 46 Then
Rng.Interior.ColorIndex = 4
Else
End If
If Rng.Interior.ColorIndex = 4 Then
Rng.Interior.ColorIndex = 42
Else
End If
End Sub
I cannot figure out why it is entering that If statement. Anyone have any guidance here?
Sub Date_Highlights(Rng As Range)
If Rng.Interior.ColorIndex = xlNone Then
Rng.Interior.ColorIndex = 46
Else
End If
If Rng.Interior.ColorIndex = 46 Then
Rng.Interior.ColorIndex = 4
Else
End If
If Rng.Interior.ColorIndex = 4 Then
Rng.Interior.ColorIndex = 42
Else
End If
End Sub