Hi,
I have the code
which formats the cells based on the condition stated . However I want to use a Private Sub so it changes when the instrg is entered in a cell. I also want this for a set of range and not just one cell. I.E Range ("I10:AA1000").
Thanks in advanced for your help !
I have the code
Code:
If Len((Range("I10")) = 3 And Mid((Range("I10")), 3, 1) > 5 Then
(Range("I10").Interior.ColorIndex = 3
ElseIf Len(Range("I11")) = 4 And Mid((Range("I11")), 3, 2) > 5 Then
Range("I11").Interior.ColorIndex = 3
ElseIf Len(Range("I12")) = 5 And Mid((Range("I12")), 3, 3) > 5 Then
Range("I12").Interior.ColorIndex = 3
End If
which formats the cells based on the condition stated . However I want to use a Private Sub so it changes when the instrg is entered in a cell. I also want this for a set of range and not just one cell. I.E Range ("I10:AA1000").
Thanks in advanced for your help !