Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A3")) Is Nothing Then
If [C8] <> "" And IsNumeric([C8]) Then
If Range("A3").Value > [C8] Then
MsgBox " Cellule A3" & Chr(10) & "Valeur maximale permise : " & [C8], 48, "Annulation de saisie!"
Range("A3").ClearContents
End If
End If
End If
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("A3")) Is Nothing Then
If [C8] <> "" And IsNumeric([C8]) Then
MsgBox " Cellule A3" & Chr(10) & "Valeur maximale permise : " & [C8], 48, "Limitation de valeur"
End If
End If
End Sub