form fields in header/footer

  • Thread starter Thread starter Hilary
  • Start date Start date
Hi Hilary,

You mean for the user to fill in as he/she would with an other form fields?

Then no, you can't. Once the document is protected for forms, the header or
footer is not available.

I have two suggestions to help you achieve your intended result though, and
for both you need some macros to make them effective and easy to use for the
user.:

1) Use ASK and REF fields, pus a macro to invite the user to input the data
and update the header/footer (fairly easy to set up but can get difficult to
maintain if have many diiferent pieces of info you want from the user);
2) Userforms and bookmarks or docvariables to display user input in the
header/footer (More difficult if you have never done it, but easy to
maintain...).

Which way do you want to go?
Or maybe someone will come along with an even easier method that escapes me
at this point...

HTH
--
Cheers!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
Hi.

Actually, what we're trying to do is this:

We want the header to be the same on each page. Part of
the information in the header would be three form fields
which will be populated with information from the AS400.
The reason it needs to be in the header is so that it will
be at the top of each page in our document.

I hope that makes sense.

Thanks for your help!

Hilary
 
Fields yes, but why *form* fields? DocProperty or DocVariable fields are a
much simpler and easier way to do this. To do it with document properties:

1. When you get the AS400 data, add or update CustomDocumentProperties for
each of the values you are dealing with.

2. Within the document (in the header, footer, or wherever) add a
DocProperty for each value you want to insert.

3. After updating the property, you need to update fields to pick up the new
value.


If your documents are created from a custom template you might find it
simplest to add dummy values to the template. Then when you create the
document all you need do is update the properties then update fields.

DocVariables function in much the same way. The main difference is that
properties are accessible to the ordinary user via File > Properties >
Custom; while variables can be set and changed only through VBA.




Hi.

Actually, what we're trying to do is this:

We want the header to be the same on each page. Part of
the information in the header would be three form fields
which will be populated with information from the AS400.
The reason it needs to be in the header is so that it will
be at the top of each page in our document.

I hope that makes sense.

Thanks for your help!

Hilary
 
If the information is entered into a form field anywhere on the page, you
can use a cross-reference to insert the data in the header.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Hi.

Actually, what we're trying to do is this:

We want the header to be the same on each page. Part of
the information in the header would be three form fields
which will be populated with information from the AS400.
The reason it needs to be in the header is so that it will
be at the top of each page in our document.

I hope that makes sense.

Thanks for your help!

Hilary
 
DocVariable fields in a header or footer will crash Word 97.
--

Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
Suggestion:

Set the form up to have a different first page header. Then have no header.
Instead have the three form fields you want in the header at the top of page
1. Insert REF or STYLEREF fields in your header (which will then start on
page 2) referring to the initial info.

{ REF "BookmarkName" } or { STYLEREF "StyleName" }

If you have your fields on the first page in a paragraph with a unique style
name, you'll only need the StyleRef field. Otherwise, each formfield has a
bookmark name. To see it, double-click on the (unprotected) formfield to
view properties. While you are looking at them you should check the property
to "calculate on exit." You can - and probably should - change the bookmark
name to something more meaningful.

Hope this helps.
--

Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

Hi.

Actually, what we're trying to do is this:

We want the header to be the same on each page. Part of
the information in the header would be three form fields
which will be populated with information from the AS400.
The reason it needs to be in the header is so that it will
be at the top of each page in our document.

I hope that makes sense.

Thanks for your help!

Hilary
 
Thank you. Thank you. Thank you!!!!!
-----Original Message-----
If the information is entered into a form field anywhere on the page, you
can use a cross-reference to insert the data in the header.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Hi.

Actually, what we're trying to do is this:

We want the header to be the same on each page. Part of
the information in the header would be three form fields
which will be populated with information from the AS400.
The reason it needs to be in the header is so that it will
be at the top of each page in our document.

I hope that makes sense.

Thanks for your help!

Hilary



.
 
You're welcome³.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Thank you. Thank you. Thank you!!!!!
 
Back
Top