Bonjour,
Pas certain d'avoir compris ... et pas certain qu'une MFC n'aurait pas suffi !?
Coller les lignes suivantes dans la fenêtre de code de la Feuil1:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Column < 3 And Target.Column > 7 Then Exit Sub
If (Target.Row - 7) Mod 17 = 0 Then
If Target = "NON" Then
Cells(Target.Row - 4, Target.Column).Resize(17, 1).Interior.Color = RGB(238, 236, 225)
Cells(Target.Row - 4, Target.Column).Resize(17, 1).Font.Color = RGB(128, 128, 128)
Else
Cells(Target.Row - 4, Target.Column).Resize(17, 1).Interior.ColorIndex = xlNone
Cells(Target.Row - 4, Target.Column).Resize(17, 1).Font.ColorIndex = xlAutomatic
End If
End If
End Sub
... en espérant que chaque "bloc" fera bien 17 lignes à chaque fois !