Hi there,
I'm trying to run a date validation on text box but it does not work the way it should work. Here is the code. Could someone help?
Private Sub dobtbox_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If dobtbox = vbEmptyString Then Exit Sub
If IsDate(dobtbox) Then
dobtbox = Format(dobtbox, "mm/dd/yyyy")
Else
MsgBox " Please enter a valid date", vbCritical
End If
End Sub
Thank you
Bookmarks