bonjour Maiden002 le forum une evenemtielle!!
je prends la colonne H si oui vert sinon blanc a adapter
1 2 3 4 5 6 7 8 9 10 11
| Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim lig As Long
If Not Application.Intersect(Target, Range("H:H")) Is Nothing Then
lig = ActiveCell.Row
If Target = "OUI" Then
Range("A" & lig & ":g" & lig).Interior.ColorIndex = 4
Else
Range("A" & lig & ":g" & lig).Interior.ColorIndex = xlNone
End If: End If
End Sub |
PS oui en majuscule sinon
If Target = "OUI" Or Target = "oui" Then
ou en debut de module
1 2
| Option Explicit
Option Compare Text |
ect...
Partager