You may need to change ColourIndex number to suit
'These instructions pre typed & are worded to cater for the novice programmer
'To install macro to correct location
'Copy the macro
'GoTo Excel
'Select sheet this macro is to apply to
'Right Click on Sheet Name Tab > select View Code
'Paste macro into the Worksheet Module displayed
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, Range("b22:t22")) Is Nothing Then
Application.EnableEvents = False
With Target.Interior
Select Case UCase(Target.Value)
Case "P"
.ColorIndex = 3
Case "S"
.ColorIndex = 5
Case "HL"
.ColorIndex = 10
Case "ML"
.ColorIndex = 7
Case "FL"
.ColorIndex = 46
End Select
End With
End If
Application.EnableEvents = True
End Sub
Bookmarks