When entering a date, how do I display a message box that asks for confirmation to continue if the date is in the past?
The data validation works but I need a message to be displayed if the date is before the current date, asking if you really want to post a date in the past and asking for confirmation.
Sub worksheet_change(ByVal target As Range)
Dim cell As Range
Application.EnableEvents = False
If Range("A1").Value < Date Then
MsgBox "This input is older than today !....Are you sure that is what you want ???"
End If
Application.EnableEvents = True
End Sub