mandatory fill-in fields in MS Word

G

Guest

I am trying to make 3 fields on an on-line MS Word template mandatory fill
ins. We fill out this elec. Form and email to others using MS Outlook. I want
to be sure these 3 fields are filled in before the user sends the form. Any
help will be appreciated.

Deb

We are still using MS word 97 on most of our machines, and slowly migrating
to 2003.
 
J

Jay Freedman

Use the macro shown in
http://www.word.mvps.org/FAQs/TblsFldsFms/ValidateFFields.htm, but
change the line

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

to

If Len(.Result) = 0 Then

and change the message to something like "This field is required".

You'll need to make three separate pairs of macros, one for each form
field that's required, unless you know enough programming to make the
macro figure out the name of the field to go back to. (It isn't that
hard, but it's still simpler to use separate macros.)
 
G

Guest

Jay,

Thank-you for the reply; I tried this macro, however I can't get it to work
for me. I am not that experienced with the programming side of things so I
must be missing something. Thanks again.

Deb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top