Share via

Conditional Mail Merge w/ Image Problem

Anonymous
2017-12-19T19:03:57+00:00

I am trying to set up a conditional Mail Merge where if the field Corn_Member = Yes an image will be inserted and if the merge field is blank no image will be inserted. Here is the code I have inserted but I cannot get the image to show up. I have tried merging everything and then in the new document pressing CTRL + A then F9 and still get nothing. What am I doing wrong?

{  IF { MERGEFIELD Corn_Member } = "Yes" { INCLUDEPICTURE "{ IF TRUE "Z:\Communications\Logos\Current Logo\color_logo_nowords.jpg"}" \d } ""  }

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2017-12-20T10:34:30+00:00

    Hi Theresa,

    It is possible that the formula you are using is not complete and is missing something. That being said, you can use the information found on the links below as your guidelines in doing a conditional Mail Merge.

    Hope this information helps you. In case you need further assistance, don't hesitate to post back.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Doug Robbins - MVP - Office Apps and Services 323.1K Reputation points MVP Volunteer Moderator
    2017-12-20T23:47:13+00:00

    Try using just

    { INCLUDEPICTURE "{ IF TRUE "Z:\Communications\Logos\Current Logo\color_logo_nowords.jpg"}" \d }

    You must use CTRL+F9 for each pair of field delimiters.

    If that works, when using it inside the If...then...Else field construction, it may be an issue of the field needing to be updated.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2017-12-20T19:31:35+00:00

    I copied that exact field code in and it still isn't working. I'm wondering if maybe the location I have for my photo is incorrect. I sort of cobbled that together based on copy and paste.

    How do I go about getting the exact location for the photo or is there a better way to insert the picture instead of pulling it from my computer server?

    Was this answer helpful?

    0 comments No comments
  4. Doug Robbins - MVP - Office Apps and Services 323.1K Reputation points MVP Volunteer Moderator
    2017-12-20T10:46:26+00:00

    The field construction should be:

    {  IF { MERGEFIELD Corn_Member } = "Yes" { INCLUDEPICTURE "{ IF TRUE "Z:\Communications\Logos\Current Logo\color_logo_nowords.jpg"}" \d } ""  }

    To insert each pair of field delimiters, CTRL+F9 must be used.

    Was this answer helpful?

    0 comments No comments