Protected Form Fields in Header Area

J

jlee

I have a question regarding the header/footer in a protected form.
Is
there a way to insert form fields in the header/footer in a protected
MS Word form? When an user opens the form file, I'd like the person
to go to the header and fill in the form fields, close the header,
and then fill in the rest of the form. And the header information
should repeat every page of the form. Right now it seems that when
protected, the user cannot access the header. Can anyone help me
with
this issue, if there's a way around it? Thank you!

Joy
 
J

Jay Freedman

I have a question regarding the header/footer in a protected form.
Is
there a way to insert form fields in the header/footer in a protected
MS Word form? When an user opens the form file, I'd like the person
to go to the header and fill in the form fields, close the header,
and then fill in the rest of the form. And the header information
should repeat every page of the form. Right now it seems that when
protected, the user cannot access the header. Can anyone help me
with
this issue, if there's a way around it? Thank you!

Joy

No, form fields aren't allowed in headers or footers.

One way to deal with it would be to put those form fields in the body
of the first page. In File > Page Setup > Layout, check "Different
first page" and leave the first page header/footer blank (or only
static text). Then use Ref fields to repeat the form field data in the
header/footer for the remaining pages
(http://gregmaxey.mvps.org/Repeating_Data.htm).

Another way, using macro code, is to present a custom dialog to gather
the information and store it in document variables. Then you can put
DocVariable fields in the header/footer to display the otherwise
invisible information. This has the drawback that macros in documents
trigger the security mechanism, and you can't count on every recipient
to allow your macros to run.

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

jlee

No, form fields aren't allowed in headers or footers.

One way to deal with it would be to put those form fields in the body
of the first page. In File > Page Setup > Layout, check "Different
first page" and leave the first page header/footer blank (or only
static text). Then use Ref fields to repeat the form field data in the
header/footer for the remaining pages
(http://gregmaxey.mvps.org/Repeating_Data.htm).

Another way, using macro code, is to present a custom dialog to gather
the information and store it in document variables. Then you can put
DocVariable fields in the header/footer to display the otherwise
invisible information. This has the drawback that macros in documents
trigger the security mechanism, and you can't count on every recipient
to allow your macros to run.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

I used autotext formula and it worked! Thank you! However, there's a
problem. Initial "numpages" works okay, but when more pages are
added, the "numpages" field won't update. I try switching to another
view, etc., but it won't update to the changed number of pages. I
don't think I missed any step . . . Is there a way to fix this
problem?

Puzzling,
Joy
 
J

Jay Freedman

I used autotext formula and it worked! Thank you! However, there's a
problem. Initial "numpages" works okay, but when more pages are
added, the "numpages" field won't update. I try switching to another
view, etc., but it won't update to the changed number of pages. I
don't think I missed any step . . . Is there a way to fix this
problem?

Puzzling,
Joy

It sounds like you've hit the "Page X of Y" bug. Read
http://www.word.mvps.org/FAQs/AppErrors/PageXofY.htm for possible solutions.

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

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