Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, and 2013. 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: Merging Graphics into Word Documents.

Merging Graphics into Word Documents

by Allen Wyatt
(last updated August 30, 2016)

7

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 (8305) applies to Microsoft Word 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Word here: Merging Graphics into Word Documents.

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

Removing All Comments

Need to get rid of all the comments in your document? You can do so by using the regular Find and Replace feature of Word.

Discover More

Removing a Directory

Your macro, in the course of doing some processing, may create a directory that you later need to delete. Here's how to get ...

Discover More

Adding Horizontal Lines at the Sides of a Word

Want to add a couple of horizontal lines at the sides of a word? It can be trickier than it sounds, but there are several ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Using Mail Merge to Complete Documents

Mail merge can be used to put together groups of documents that rely on common information. This tip shows how mail merge ...

Discover More

Getting Rid of Spaces in Merged Data

When you merge information with a Word document, you may not be completely satisfied with the appearance of some of the ...

Discover More

Checkboxes in a Merged Document

When creating a mail-merge document, you may want to include some special characters, such as check-marked boxes, in the ...

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}] 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 6 - 0?

2017-11-22 09:34:55

Gary Zeune CPA

How do I mail merge images stored online like this URL???http://www.boa.state.mn.us/images/radziej_lance.jpg


2017-02-21 09:47:55

jan

this works: http://onmerge.com/articleIncludePicture.html


2016-09-07 21:54:20

Andre @ applicious

I've done a mailmerge in Word 2016 using this format and the picture is not loaded into the document no matter what I do { INCLUDEPICTURE {IF TRUE "MERGEFIELD userEmployerLogo"} * MERGEFORMATINET d }. The field data userEmployerLogo is a web URL. I've also tried it without the IF TRUE, but still no luck. Wish there was a solution for this.


2016-08-30 11:53:49

David Eason

How does this process work in Word 2016?


2016-05-28 09:19:24

Lynne Ducharme

Hello.

Please advise steps for includepicture using MS2013.

I've spent days on this. Any advice would be greatly appreciated.

Thank you, Lynne


2016-01-18 16:34:45

Connie Goss

Like Mei, I also have the same result (same picture showing for all instances) even after pressing CTRL+A and F9. I have found some articles online claiming that INCLUDEPICTURE doesn't work correctly in 2007 and above, but it even did the same thing to me when I tried converting back to a .doc format. I looked at the OnMerge add-on but it seems to rely on file naming conventions, whereas I have unique image file names stored in a spreadsheet. Any ideas for me? Thank you!


2014-12-15 20:20:18

Mei

Thanks for the Tip! However, after I did Ctrl+A and F9 to the Directory Merge I created in Word 2010, I still just see the first picture repeating when I Finish & Merge --> Edit Individual Documents. Please advise. Thank you!


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.

Newest Tips
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.