Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

header/footer merge fields not working

545 views
Skip to first unread message

Uh

unread,
Apr 5, 2004, 12:27:08 PM4/5/04
to

I have not been able to make Mail Merge populate header and footer
fields. I'm using Word 2003, and have tried .txt and .csv files for
source. Merge fields in a table in the body work fine, but those in
header/footer tables come out blank. After reading related threads in
this forum I removed all header/footer text boxes and drawing canvases,
but to no avail. I've tried both Letter and Directory type merges.
When I use the Merge wizard and get to the final step, it tells me
"Word found locked fields during the update. Word cannot update locked
fields." I've verified I can lock and unlock fields in the body with
CTRL+SHIFT+F11, but using this on the header/footer fields doesn't
change my results. Maybe I'm overlooking something simple, but I don't
see it. Please help.


------------------------------------------------
~~ Message posted from http://www.WordForums.com/

Charles Kenyon

unread,
Apr 6, 2004, 10:26:47 AM4/6/04
to
Header and footer fields do not display the merge results for me until I
either print or do a print preview. That is, they just show the merge codes
when I am in print view until I take one of the other steps. This is with
Word 2003 but I don't think this is new.
--

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.

<Uh>; "Clem" <Uh.Clem...@nospam.WordForums.com> wrote in message
news:Uh.Clem...@nospam.WordForums.com...

Uh

unread,
Apr 7, 2004, 12:21:00 PM4/7/04
to

My header and footer merge fields don't display anything at all after
the merge, either in print preview or when printed. Also, when I try
merge to printer, I get the same error message reported below about
locked fields, even though I've unlocked all of them. The merge fields
in the body work properly. There's nothing on this problem in the MVP
FAQ, either. Help, I need to find a solution soon!

Uh

unread,
Apr 21, 2004, 11:50:05 AM4/21/04
to

I'm still hoping to hear from an MVP or someone with a solution, or even
further suggestions...

Graham Mayor

unread,
Apr 22, 2004, 3:30:18 AM4/22/04
to
Most MVPs access the server directly rather than through the dreadful
WordForums web portal, and don't keep past messages around for long so if
you don't include the previous correspondence - or the relevant parts of
it - in your post, no-one has a clue what you are on about when you pop up
later.

From the title of your message it seems you want to put a merge field in the
header - well the simple answer to that is that you can't. You would need to
create a page heading in the text plane of the document - not a header.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP

Web site www.gmayor.com
Word MVP web site www.mvps.org/word

Charles Kenyon

unread,
Apr 22, 2004, 12:07:18 PM4/22/04
to
Hi Graham,

I regularly include merge fields in my footers. It works although it takes a
print preview or print to update the fields. My merges, though, may not be
usual, I am only producing one document in the merge for a single record and
I print directly from the show merge data screen rather than merging to a
separate document.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: 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.

"Graham Mayor" <gma...@NOSPAMmvps.org> wrote in message
news:%23ssPruD...@tk2msftngp13.phx.gbl...

Graham Mayor

unread,
Apr 22, 2004, 12:22:55 PM4/22/04
to
I was having one of those senior moments this morning. I am not sure what I
was thinking of when I wrote that :(

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP

Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>

Charles Kenyon wrote:
> Hi Graham,
>
> I regularly include merge fields in my footers. It works although it
> takes a print preview or print to update the fields. My merges,
> though, may not be usual, I am only producing one document in the
> merge for a single record and I print directly from the show merge
> data screen rather than merging to a separate document.
>

Bob S

unread,
Apr 23, 2004, 12:07:43 PM4/23/04
to
On Wed, 7 Apr 2004 11:21:00 -0500, Uh, Clem
<Uh.Clem...@nospam.WordForums.com> wrote:

>
>My header and footer merge fields don't display anything at all after
>the merge, either in print preview or when printed. Also, when I try
>merge to printer, I get the same error message reported below about
>locked fields, even though I've unlocked all of them. The merge fields
>in the body work properly. There's nothing on this problem in the MVP
>FAQ, either. Help, I need to find a solution soon!

I have never heard of this problem before. Below are a few things that
you could try...

Bob S

Merging Into a Header or Footer

In versions before Word 2002 this can be problematic. One hint is;
don't merge into a text box in a header or footer. Another is; footers
only appear on the last page. Another is; many types of field code
(e.g. CREATEDATE) don't work at all in headers in mail merge.

It has been reported that merge fields in the header or footer will
actually work in Word 2002 if you are doing a "form letter" merge.
Directory (a.k.a. catalog) merges basically won't take any merge
fields in the header in any version. After all, which record should it
take the data from if several records are going into one page?

One trick that can help if you are having trouble getting merge fields
to work in a header or footer is to put the merge field in the main
document, formatted in a specific paragraph style, then use a STYLEREF
field to put the information in the header. The copy in the body can
be formatted as one point tall and white; alternatively you can format
it hidden, and then in the merge field code add the \* CHARFORMAT
switch; do not use the \* MERGEFORMAT switch.

Another trick is to bookmark the merge fields in the main body and use
a REF field in the header or footer. There has been one report that if
you have a "different first page" header, only the first page bookmark
will work.


Charles Kenyon

unread,
Apr 23, 2004, 1:24:40 PM4/23/04
to
It is my recollection that text formatted as hidden will not be picked up by
a StyleRef field.
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: 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.

"Bob S" <notare...@110.net> wrote in message
news:snfi80lt255604hob...@4ax.com...

Bob S

unread,
Apr 27, 2004, 5:45:33 PM4/27/04
to
On Fri, 23 Apr 2004 12:24:40 -0500, "Charles Kenyon"
<msnew...@remove.no.spam.addbalance.com> wrote:

>It is my recollection that text formatted as hidden will not be picked up by
>a StyleRef field.

Ooops, right, scratch the bit about hidden...

Bob S

0 new messages