tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
The code below checks for the value entered into the textbox.
The problem is whenever the user attempts to enter a date, such as 01/01/2018, as soon as 0 is typed, the code above starts and the MsgBox is displayed.
How can I change it so the above code only starts when the full date have been entered?
does NOT suppress the above.
Thanks
Code:
Private Sub Date_Change()
If Not IsDate(Date.Value) Then
MsgBox "Must be a date"
End If
End Sub
The problem is whenever the user attempts to enter a date, such as 01/01/2018, as soon as 0 is typed, the code above starts and the MsgBox is displayed.
How can I change it so the above code only starts when the full date have been entered?
Code:
Application.EnableEvents = False
does NOT suppress the above.
Thanks
Last edited: