voici le code que j'ai rentré
Sub PopUp()
'
' PopUp Macro
'
Private Sub Worksheet_Change(ByVal Target As Range)
If DateAdd("n", 5, [dernierChangement].Value) < Now Then
[dernierChangement].Value = Now
Dim v, v2
v = Worksheets("poids total").Cells(5, 1).Value
v2 = Worksheets("poids-par-produit").Cells(6, 1).Value
If v <> v2 Then MsgBox "!! ATTENTION PROBLEME DE TOTALISATION !!", vbInformation
End If
End Sub