Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Merging Graphics into Word Documents.
Written by Allen Wyatt (last updated September 29, 2020)
This tip applies to Word 97, 2000, 2002, and 2003
The mail merge feature in Word is extremely powerful, and you can use it to easily create customized versions of documents from information in a data source (such as a Word table, an Excel worksheet, or an Access database). Normally the mail merge feature is used to merge text into a document—items such as a customer name or a part number. There may be times, however, when you want to merge a graphic into your document.
The key to merging graphics is to make sure that you don't try to merge the graphic itself, but to merge a field that "points" to the graphic file. For instance, you might have an Excel worksheet that contains a group of real estate listings. Just make sure you set up your worksheet so that it contains the file address of the graphic you want to merge. Each record in the worksheet should have a complete drive name, path, and file name (in a single column) for the graphic associated with that record. The following is an example of such a file address:
d:\listings\myhouses\smithhouse.jpg
For the purposes of this discussion, let's assume that you named the column PictureLocation. When you create your merge document in Word, you can include a merge field such as this:
{INCLUDEPICTURE "{MERGEFIELD PictureLocation}" \d}
Notice that this is actually two fields within one. It is important to make sure that you include the quote marks, as indicated. When Word merges the document, it replaces the MERGEFIELD field with the data indicated. Thus, the example would become this:
{INCLUDEPICTURE "d:\listings\myhouses\smithhouse.jpg" \d}
The remaining INCLUDEPICTURE field is then translated by Word as a directive to include the noted picture.
It is important to remember that after you perform your merge operation in Word, it may appear that your graphic merge didn't work properly. To speed things up, Word displays the same picture for each of the INCLUDEPICTURE fields. Thus, your merged document will appear as if it contains multiple instances of the same picture. This simply occurs because Word doesn't update the INCLUDEPICTURE field for each record it merges. To force this, simply select the entire document (Ctrl+A) and press F9 or print the merged documents. (Word updates all fields prior to printing.)
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1548) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Merging Graphics into Word Documents.
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!
Ever wonder why a border around a graphic doesn't print the way it looks on the screen? There are several ways to add and ...
Discover MoreWant a graphic to appear at a precise place on the page? It's easy to gain control by following the steps in this tip.
Discover MoreHow to select a graphic that is obscured by a text box can be perplexing. Here's an overview of the different ways you ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2017-12-20 11:42:38
JT Sullivan
Worked thru this procedure and get the error message: This image can not be displayed. The file may have been removed, renamed or deleted.
Could it be that a .png file is not recognized.? I got the images using the Snit it tool from a pdf file. If so, is there a conversion process to a usable image file?
Thanks
2017-07-18 12:47:28
Scott
What if I am using an XML Mapping within the {IncludePicture} insert above. I can't seem to get this to work. It keeps changing the XML Mapping to just plain text.
2017-01-18 11:54:15
margie
you have to include "around the string" in excel also
2016-12-20 08:47:37
Danny
Hi Allen,
You could use https://document-merge.com/ It's an online service that integrates Excel data into a Word document.
Cheers,
Danny
Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments