Bonjour,
Une proposition à étudier, sans MFC, avec une procédure événementielle.
Cdlt.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, [B2:C11]) Is Nothing Then
If Target.Count > 1 Then Exit Sub
Select Case Target.Column
Case 2
If Target.Value = "x" Then Target.Offset(0, 1).Value = vbNullString
Case 3
If Target.Value = "x" Then Target.Offset(0, -1).Value = vbNullString
End Select
With Target.Font
.Color = RGB(255, 0, 0)
.Bold = True
End With
End If
End Sub
Sub Resset_Values()
With Me
With .Range("B2,C3:C5,B6:B8,C9,B10:B11")
.Value = "x"
With .Font
.Color = RGB(0, 0, 0)
.Bold = True
End With
End With
.Range("C2,B3:B5,C6:C8,B9,C10:C11").Value = vbNullString
End With
End Sub