Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Excel.Range)
If Not Application.Intersect(Target, Range("K25:K65000")) Is Nothing Then
For Each cell In Target
If cell.Value = "OK" Then
cell.Interior.ColorIndex = 35
ElseIf cell.Value = "KO" Then
cell.Interior.ColorIndex = 3
ElseIf cell.Value = "NA" Then
cell.Interior.ColorIndex = 40
ElseIf cell.Value = "NR" Then
cell.Interior.ColorIndex = 15
ElseIf cell.Value = "NT" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "NTinfra" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "Ntinfra" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "NTbug" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "Ntbug" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "NThsc" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "Nthsc" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "NTpdt" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "Ntpdt" Then
cell.Interior.ColorIndex = 33
ElseIf cell.Value = "" Then
cell.Interior.ColorIndex = xlColorIndexNone
End If
Next
End If
If Not Application.Intersect(Target, Range("M25:M65000")) Is Nothing Then
For Each cell In Target
If cell.Value = "Mi" Then
cell.Interior.ColorIndex = 4
ElseIf cell.Value = "mi" Then
cell.Interior.ColorIndex = 4
ElseIf cell.Value = "Ma" Then
cell.Interior.ColorIndex = 45
ElseIf cell.Value = "ma" Then
cell.Interior.ColorIndex = 45
ElseIf cell.Value = "Cri" Then
cell.Interior.ColorIndex = 3
ElseIf cell.Value = "cri" Then
cell.Interior.ColorIndex = 3
ElseIf cell.Value = "" Then
cell.Interior.ColorIndex = xlColorIndexNone
End If
Next
End If
End Sub