Hello - I have a condtional formatting code that allows me to get around the 3 conditional formattign limit, but it does not automatically update when I copy in new data. It is very manual to retyepe the data into each cell in order to get the cell color to change. Is there anyway to have this update automatically?
Private Sub Worksheet_Change(ByVal Target As Range)
Dim icolor As Integer
If Not Intersect(Target, Range("L3:L100")) Is Nothing Then
Select Case Target
Case 0 To 9
icolor = 43
Case 10 To 19
icolor = 39
Case 20 To 29
icolor = 37
Case 30 To 39
icolor = 36
Case 40 To 49
icolor = 40
Case 50 To 59
icolor = 38
Case 60 To 69
icolor = 15
Case Else
End Select
Target.Interior.ColorIndex = icolor
End If
End Sub
Also, is it possible to change the interior color of a set of cells in that row?
Thanks
Private Sub Worksheet_Change(ByVal Target As Range)
Dim icolor As Integer
If Not Intersect(Target, Range("L3:L100")) Is Nothing Then
Select Case Target
Case 0 To 9
icolor = 43
Case 10 To 19
icolor = 39
Case 20 To 29
icolor = 37
Case 30 To 39
icolor = 36
Case 40 To 49
icolor = 40
Case 50 To 59
icolor = 38
Case 60 To 69
icolor = 15
Case Else
End Select
Target.Interior.ColorIndex = icolor
End If
End Sub
Also, is it possible to change the interior color of a set of cells in that row?
Thanks