Modifications faites plusieurs fois. Rien à faire.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Range("D5:AM20"), Target) Is Nothing Then
If Target.Interior.ThemeColor = xlThemeColorDark1 Then
Select Case Target
Case 0: Target.Font.ColorIndex = 1
Case 2, 4, 5: Target.Font.ColorIndex = 5
End Select
Else
Select Case Target
Case 0, 2: Target.Font.ColorIndex = 3
Case 4: Target.Font.ColorIndex = 0
Case 5: Target.Font.ColorIndex = 5
End Select
End If
End If
End Sub