#1
|
|||
|
|||
IncludePicture with Mergefield
Hi everyone,
I have been trying all different combinations and I can't get anything to work. I get an error depending on the method I run Error! Filename not specified. Other times I get the nothing to appear. I have a mergefield set to {MERGEFIELD mem_number \* MERGEFORMAT } and this works just fine. I get the appropriate Mem_number from the field Now what I would like to do is pull an image from a specific directory. I've done the following: {INCLUDEPICTURE "C:\\TEMP\\{MERGEFIELD mem_number}.jpg" \* MERGEFORMAT} this does not work. when I do an ALT+F9 to see what the path is I only get c:\temp\.jpg Its dropping the mergefield. If anyone can figure this out, I would greatly appreciate the help. thank you |
#2
|
||||
|
||||
You need the correct syntax for it to work i.e.
{INCLUDEPICTURE "{IF TRUE "C:\\Temp\\{Mergefield FieldName}.jpg"}" \d } See Mail merge graphics and Mail Merge Graphics Add-in
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
||||
|
||||
This is all explained in the Mailmerge Tips & Tricks 'Sticky' thread at the top of this forum:
https://www.msofficeforums.com/mail-...ps-tricks.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
|||
|
|||
thanks, got it to work. needed to remove the beginning and end quotes.
Appreciate the help |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IncludePicture does not refresh the pictures | ragesz | Mail Merge | 5 | 10-23-2020 03:41 AM |
Copy IncludePicture field code | VEA | Word | 1 | 06-21-2016 07:01 PM |
InCludePicture are strecthed | VEA | Word | 3 | 06-20-2016 03:10 AM |
Printing selected pages based on a MERGEFIELD.g. If MERGEFIELD=x then print pages 1,2,4 if MERGEFIEL | Richard.p | Word | 3 | 04-21-2015 01:14 AM |
IncludePicture does not work in Mailmerge | malalex | Mail Merge | 4 | 12-10-2013 07:09 PM |