I have the following code to change background and font colors in cell L328 based on the value of cell X328. Cell X328 value changes based on the selection in a combo box.
The problem is that nothing happens unless I step into any cell and get out. What am I missing?
[vba]
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case [X328].Value
Case Is = 1
[L328].Interior.ColorIndex = 1
[L328].Font.ColorIndex = 2
Case Is = 2
[L328].Interior.ColorIndex = 10
[L328].Font.ColorIndex = 2
Case Is = 3
[L328].Interior.ColorIndex = 6
[L328].Font.ColorIndex = 1
Case Is = 4
[L328].Interior.ColorIndex = 11
[L328].Font.ColorIndex = 2
Case Is = 5
[L328].Interior.ColorIndex = 8
[L328].Font.ColorIndex = 1
Case Is = 6
[L328].Interior.ColorIndex = 13
[L328].Font.ColorIndex = 2
Case Is = 7
[L328].Interior.ColorIndex = 22
[L328].Font.ColorIndex = 2
End Select
End Sub
[/vba]