hiya cheers for your help got this to work
Code:
Public Sub Worksheet_Change(ByVal Target As Range)
If Target.Column >= 6 And Target.Column < 16 Then
Select Case Cells(Target.Row, 16).Value
Case Is = 0
Cells(Target.Row, 17).Interior.ColorIndex = xlNone
Cells(Target.Row, 17).Font.ColorIndex = 0
Cells(Target.Row, 17).Value = Null
Case Is < 40
Cells(Target.Row, 17).Interior.ColorIndex = 5 'BLUE
Cells(Target.Row, 17).Font.ColorIndex = 2 'BLACK
Cells(Target.Row, 17).Value = "C"
Case Is < 81
Cells(Target.Row, 17).Interior.ColorIndex = 10 'GREEN
Cells(Target.Row, 17).Font.ColorIndex = 2 'BLACK
Cells(Target.Row, 17).Value = "B"
Case Is < 121
Cells(Target.Row, 17).Interior.ColorIndex = 6 'YELLOW
Cells(Target.Row, 17).Font.ColorIndex = 0 'WHITE
Cells(Target.Row, 17).Value = "A"
Case Else
Cells(Target.Row, 17).Interior.ColorIndex = 3 'RED
Cells(Target.Row, 17).Font.ColorIndex = 2 'BLACK
Cells(Target.Row, 17).Value = "AA"
End Select
Else
'don't do anything
End If
End Sub
just have to watch i dont insert any rows
cheers