Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error GoTo Fin
If Target.Count > 2 Then Exit Sub
If Not Intersect(Target, Range("B1:E1000")) Is Nothing Then
couleur = RGB(200, 225, 180) ' à modifier si besoin
c = Target ' transfert dans array car cellules fusionnées
Range(Cells(Target.Row, "B"), Cells(Target.Row, "E")).Interior.Color = vbWhite
Select Case c(1, 1)
Case "Conforme"
Target.Interior.Color = couleur
Cells(Target.Row, "F") = 3
Case "Non conforme"
Target.Interior.Color = couleur
Cells(Target.Row, "F") = 0
Case "Non évalué"
Target.Interior.Color = couleur
Cells(Target.Row, "F") = 1
Case "Non applicable"
Target.Interior.Color = couleur
Cells(Target.Row, "F") = 2
End Select
End If
Fin:
End Sub