Please Note: This article is written for users of the following Microsoft Word versions: 2007 and 2010. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Can't Place Merge Field in Header Of a Catalog Merge Document.

Can't Place Merge Field in Header of a Catalog Merge Document

Written by Allen Wyatt (last updated December 27, 2021)
This tip applies to Word 2007 and 2010


1

Christy asked why she couldn't get Word to place merged data into the header of a document when creating a catalog. Word would work just fine when creating form letters, but not when doing catalogs.

There are several different types of merge operations you can do in Word. The Mail Merge feature allows you to create labels, envelopes, form letters, and catalogs. Understanding the differences between creating form letters and creating catalogs is essential in understanding why you can't insert merge data in a header or footer.

When you create form letters, Word creates a new letter (document) for each record in your data source. It separates each letter by a section break. When you create a catalog, Word doesn't have this one-to-one equivalence between sections and data records. Catalogs are designed to have multiple records per page—just like product entries in a printed catalog.

Let's say you place the data field "Part Number" in the header of a catalog merge document. Further, Word is able to place fifteen actual records on the final merged page. Exactly which part number is Word supposed to place in the header of the page? It has fifteen to choose from, since it placed fifteen records on the page. Because there is no on-to-one correspondence between records and sections, Word can't place the data in the header or footer.

One way around this, of course, is to utilize Word's fields. Instead of placing a data field in the header, place a field that references the first or last occurrence of a style on a page (the STYLEREF field). For instance, you could format your part numbers so they used a particular heading level. Your header or footer could then reference that style, so the merged document would show the first or last part number on a particular page.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (10444) applies to Microsoft Word 2007 and 2010. You can find a version of this tip for the older menu interface of Word here: Can't Place Merge Field in Header Of a Catalog Merge Document.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Understanding AutoComplete

Entering data in a worksheet can be time consuming. One of the tools that Excel provides to make entry easier is ...

Discover More

ISO Week Numbers in Excel

Work in an industry that uses ISO standards when it comes to working with dates? You'll love the formula in this tip ...

Discover More

Backing Up Building Blocks

Got a lot of Building Blocks defined in Word? You can back them up rather easily, but first you need to figure out where ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (ribbon)

Maintaining Leading Zeroes

When merging ZIP Codes from a data source such as Excel, you might find that Word ends up dropping out leading zeroes in ...

Discover More

Beginning a Mail Merge

Performing a mail merge can be intimidating to some people. It needn't be; Word provides a handy step-by-step wizard that ...

Discover More

Creating Files with Mail Merge

When you use mail merge to create a document that incorporates all your data source records, you end up with a large ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 1 + 1?

2018-11-09 17:16:16

Kevin Dearing

I was just shown this by a co-worker.. If, when doing a Directory merge you put the following field code in your footer then it will use the first row's source in all of the footers...

{ IF TRUE "{ MERGEFIELD "NameOfFieldHere" }" }

I just tried it and it works in 2010, I haven't tried it in 2016 yet (and haven't tried it in older versions either..)

THe importand part is that the MergeField ... field needs to be encapsulated with double quotes.. It doesn't work without those.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.