Bonjour Sellig,
Utilisez la balise </> pour le code, c'est plus lisible :
Essayez :
VB:
Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 12 Then Exit Sub
If IsDate(Target) And Target.Address = "$A$1" Then
If Target < Date Then MsgBox ("Bonjour")
End If
End Sub
Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count > 12 Then Exit Sub
If IsDate(Target) And Target.Address = "$A$1" Then
If Target < Date Then MsgBox ("Bonjour")
End If
End Sub