G
Guest
After pasting the following code in the worksheet tab - view code - save and I did not get any result
does any one know why
Private Sub Worksheet_Change(ByVal Target As Excel.Range
If Not Intersect(Target, Range("A1")) Is Nothing The
With Range("A1"
If IsNumeric(.Value) The
Select Case .Valu
Case Is > 11
.Interior.ColorIndex = 5 'blu
Case Is >= 10
.Interior.ColorIndex = 10 'gree
Case Is >= 9
.Interior.ColorIndex = 46 'orang
Case Els
.Interior.ColorIndex = 2 'whit
End Selec
Els
.Interior.ColorIndex = xlColorIndexNon
End I
End Wit
End I
End Su
does any one know why
Private Sub Worksheet_Change(ByVal Target As Excel.Range
If Not Intersect(Target, Range("A1")) Is Nothing The
With Range("A1"
If IsNumeric(.Value) The
Select Case .Valu
Case Is > 11
.Interior.ColorIndex = 5 'blu
Case Is >= 10
.Interior.ColorIndex = 10 'gree
Case Is >= 9
.Interior.ColorIndex = 46 'orang
Case Els
.Interior.ColorIndex = 2 'whit
End Selec
Els
.Interior.ColorIndex = xlColorIndexNon
End I
End Wit
End I
End Su