Salut Phil, Pyrof, Valerie, @+Thierry et le Forum
Meme sans les usages de politesse (Phil) une soluce de base ici pour une celulle, et 4 varaibles a toi d'adapter a tes besoins.
Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value = 1 Then
Range("A1").Select
With Selection.Interior
.ColorIndex = 43
.Pattern = xlSolid
End With
Else
If Range("A1").Value = 2 Then
Range("A1").Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
Else
If Range("A1").Value = 3 Then
Range("A1").Select
With Selection.Interior
.ColorIndex = 45
.Pattern = xlSolid
End With
Else
If Range("A1").Value >= 4 Then
Range("A1").Select
With Selection.Interior
.ColorIndex = 3
.Pattern = xlSolid
End With
End If
End If
End If
End If
Range("C10").Select
End Sub
Mytå