S
Stanley
I have a text field that I type a date into. I want to check to set if the
date is valid.
The code below doesn't come close. Any way to do this? I am using Word 2003
Thanks,
Stanley
Sub ExitLastDayOfAttend()
Set vtxtLastDayOfAttend = ActiveDocument.FormFields (I want to get the value
of the field when I exit it.
If Not IsDate(vtxtLastDayOfAttend) Then
MsgBox "The date entered is invalid.", vbExclamation, "Reenter Date"
vtxtLastDayOfAttend = "mm/dd/yy" (hereI want to set the default value of
the field back to mm/dd/yy
End If
End Sub
date is valid.
The code below doesn't come close. Any way to do this? I am using Word 2003
Thanks,
Stanley
Sub ExitLastDayOfAttend()
Set vtxtLastDayOfAttend = ActiveDocument.FormFields (I want to get the value
of the field when I exit it.
If Not IsDate(vtxtLastDayOfAttend) Then
MsgBox "The date entered is invalid.", vbExclamation, "Reenter Date"
vtxtLastDayOfAttend = "mm/dd/yy" (hereI want to set the default value of
the field back to mm/dd/yy
End If
End Sub