Private Sub Worksheet_Calculate()
For Each n In ActiveWorkbook.Names
If n.Name = "mémoNB" Then trouvé = True
Next n
If Not trouvé Then ActiveWorkbook.Names.Add Name:="mémoNB", RefersTo:="=" & [B2].Value
If [B2] <> [mémoNB] Then
MsgBox "modif"
ActiveWorkbook.Names.Add Name:="mémoNB", RefersTo:="=" & [B2].Value
End If
End Sub