1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
Private Sub Worksheet_Change(ByVal Target As Range)
Dim AireLigneDevis As Range
If Target.Count > 1 Then Exit Sub
If Not Intersect(Target, Range("O14:O100")) Is Nothing Then
With ActiveSheet
Set AireLigneDevis = .Range(.Cells(Target.Row, 3), .Cells(Target.Row, 19))
With AireLigneDevis
Select Case Target
Case "estimé"
.Interior.Color = RGB(237, 127, 16)
Case "en cours"
.Interior.Color = RGB(255, 0, 0)
Case "officiel"
.Interior.Color = RGB(22, 184, 78)
Case "PMI"
.Interior.Color = RGB(22, 184, 78)
End Select
Set AireLigneDevis = Nothing
End With
End With
End If
End Sub |
Partager