View Single Post
  #3   Report Post  
Posted to microsoft.public.word.newusers
Graham Mayor
 
Posts: n/a
Default Mail Merge, Conditional INCLUDEPICTURE

Suzanne S. Barnhill wrote:
You could
insert the pictures (IncludePicture fields) directly into the IF
field, but this can be somewhat confusing and feel really strange.


But if you want to try that, using CTRL+F9 for each pair of field boundaries
{} enter the following directly in your document:

{IF {Mergefield fieldname} = 1 "{IncludePicture
"c:\\path\\picturefilename1.jpg"}" "{IncludePicture
"c:\\path\\picturefilename2.bmp"}"}

Note the double slashes and quotes and substitute the correct data as
required

Merge to a new document then select that document CTRL+A and update F9 to
display the correct pictures

You could also insert pictures based on the content of your data file - see
http://www.gmayor.com/mail_merge_graphics.htm


--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org