V
VBA WannaBe (101)
Hi All,
Hopefully you are able to help me! I am setting up a template in Word 2002
(using XP Professional) as a protected form.
I have numbers form fields (checkboxes, dropdowns & text fields) in my
template. I have set one of my text formfields as a date, and specified
format (properties - "dd-mmm-yyyy") and also loaded an "Entry" macro into the
next formfield to resend the user back to the date formfield if it is empty.
Brilliant so far (achieved through your posts on this site and MVP). I am
struggling with setting up a validation date macro, so when users enter in an
incorrect date it gives them an error message and puts focus back to the date
field.
When I test the date, if I enter in the "nd", "th" after the day ... it
spits the dummy and kicks out a strange date ..
I want to either:
a) prevent the user from entering in a date with the "th" "nd" etc OR
b) when a date is entered in this format a macro removes the non-numeric
is anybody able to assist me? Appreciate your help.
Regards
Hopefully you are able to help me! I am setting up a template in Word 2002
(using XP Professional) as a protected form.
I have numbers form fields (checkboxes, dropdowns & text fields) in my
template. I have set one of my text formfields as a date, and specified
format (properties - "dd-mmm-yyyy") and also loaded an "Entry" macro into the
next formfield to resend the user back to the date formfield if it is empty.
Brilliant so far (achieved through your posts on this site and MVP). I am
struggling with setting up a validation date macro, so when users enter in an
incorrect date it gives them an error message and puts focus back to the date
field.
When I test the date, if I enter in the "nd", "th" after the day ... it
spits the dummy and kicks out a strange date ..
I want to either:
a) prevent the user from entering in a date with the "th" "nd" etc OR
b) when a date is entered in this format a macro removes the non-numeric
is anybody able to assist me? Appreciate your help.
Regards