Private Sub Worksheet_Activate()
l = ActiveSheet.Range("B65536").End(xlUp).Row
i = ActiveSheet.Range("B65536").End(xlUp).Value
j = Format(Now, "dd/mm/yyyy")
k = Format(i, "dd/mm/yyyy")
'MsgBox j
'MsgBox k
If j = k Then
ActiveSheet.Cells(l, 2) = CDate(Format(Now, "dd/mm/yyyy"))
ActiveSheet.Cells(l + 1, 2) = CDate(DateAdd("d", 1, Now))
End If
End Sub
Avec ça ma modif se fera une seule fois la premiere fois ou tu activera la feuille