Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Not Intersect([Z], Target) Is Nothing Then
If Not IsNumeric(Target) Then
MsgBox "SVP Nbr ou rien !!! "
With Application
.EnableEvents = False
.Undo
.EnableEvents = True
End With
End If
ElseIf Not Intersect([BL:BL], Target) Is Nothing Then
If Not (Target = "x" Or Target = "x") Then
MsgBox "SVP x ou rien !!! "
With Application
.EnableEvents = False
.Undo
.EnableEvents = True
End With
End If
ElseIf Not Intersect([BO:BP], Target) Is Nothing Then
If Not (Target = "x" Or Target = "x") Then
MsgBox "SVP x ou rien !!! "
With Application
.EnableEvents = False
.Undo
.EnableEvents = True
End With
End If
ElseIf Not Intersect([BR:BX], Target) Is Nothing Then
If Not (Target = "x" Or Target = "x") Then
MsgBox "SVP x ou rien !!! "
With Application
.EnableEvents = False
.Undo
.EnableEvents = True
End With
End If
ElseIf Not Intersect([BM:BN], Target) Is Nothing Then
If Not (IsDate(Target) Or Target = "x") Then
MsgBox "SVP x, date ou rien !!! "
With Application
.EnableEvents = False
.Undo
.EnableEvents = True
End With
End If
ElseIf Not Intersect([BQ:BQ], Target) Is Nothing Then
If Not (IsDate(Target) Or Target = "x") Then
MsgBox "SVP x, date ou rien !!! "
With Application
.EnableEvents = False
.Undo
.EnableEvents = True
End With
End If
End If
End Sub