Compulsary Fields in Word Forms

  • Thread starter Thread starter Val.
  • Start date Start date
V

Val.

Is it possible to make entry into Form fields in Word Compulsary (in that you
are not allowed to leave them blank) and is it possible to put a drop-in
Calendar to select a date and then the calendar disappears again also in a
form?
 
Val. said:
Is it possible to make entry into Form fields in Word Compulsary (in
that you are not allowed to leave them blank) and is it possible to
put a drop-in Calendar to select a date and then the calendar
disappears again also in a form?

You can use a macro similar to the one in
http://www.word.mvps.org/FAQs/TblsFldsFms/ValidateFFields.htm (and see
http://www.gmayor.com/installing_macro.htm if needed). You would need to
change the field name in double quotes to the real name of the field in your
form, and you would replace the line

If Len(.Result) > 0 And Left$(.Result, 3) <> "KLM" Then

with the line

If Len(.Result) = 0 Then

to catch an empty field.

For a popup calendar, see http://www.gmayor.com/popup_calendar.htm.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Back
Top