Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2013, 05:27 AM
DewaldDeJager DewaldDeJager is offline Mail Merge with Pictures Windows 8 Mail Merge with Pictures Office 2013
Novice
Mail Merge with Pictures
 
Join Date: Dec 2013
Location: South Africa
Posts: 6
DewaldDeJager is on a distinguished road
Default Mail Merge with Pictures

Hi Paul,



I'm having exactly the same problem, but can't seem to find a way to PM you. I would just like to ask you some advice or guidance as to what I am doing wrong, but since this thread (https://www.msofficeforums.com/mail-...ut-images.html) has already been resolved, I don't want to spam it.

Thanks in advance.

- Dewald
Reply With Quote
  #2  
Old 12-21-2013, 06:12 AM
macropod's Avatar
macropod macropod is offline Mail Merge with Pictures Windows 7 32bit Mail Merge with Pictures Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Dewald,

Without knowing what you're doing, I can't really offer any specific advice. As indicated in my last post, though, it would be useful to know what the actual filepath is and what the field referenced by mergefield concerned is named and what it returns.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 12-21-2013, 06:21 AM
DewaldDeJager DewaldDeJager is offline Mail Merge with Pictures Windows 8 Mail Merge with Pictures Office 2013
Novice
Mail Merge with Pictures
 
Join Date: Dec 2013
Location: South Africa
Posts: 6
DewaldDeJager is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Hi Dewald,

Without knowing what you're doing, I can't really offer any specific advice. As indicated in my last post, though, it would be useful to know what the actual filepath is and what the field referenced by mergefield concerned is named and what it returns.
Hi Paul,

I'm trying to do a mail merge from an Excel spreadsheet. Everything works great and I have 8 images on each page (Using labels and each one has an image) but every 3 pages or so, the image changes. The name of the image it has to use is stored in the Country column in Excel. On pressing Alt-F9, it shows the URL correctly (In the final document) but all the images are showing the first pages' images. Currently the images in the template have this code:

Code:
{ INCLUDEPICTURE "JAPAN.png" \* MERGEFORMAT \d }
I'd be willing to send you the images, spreadsheet and Word document, but only personally since I wish for it to be kept confidential. If you could send me an email (You should be able to see my details), I can send them to you. Thanks for the quick reply and the willingness to help!

- Dewald
Reply With Quote
  #4  
Old 12-21-2013, 08:37 PM
macropod's Avatar
macropod macropod is offline Mail Merge with Pictures Windows 7 32bit Mail Merge with Pictures Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Simply inserting a hard-coded INCLUDEPICTURE field into the document won't work. You need to use a field construction similar to the one I've already provided in post #2 above. Since you haven't provided the information requested, though, I can't give specific advice for your situation.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 12-22-2013, 04:04 AM
DewaldDeJager DewaldDeJager is offline Mail Merge with Pictures Windows 8 Mail Merge with Pictures Office 2013
Novice
Mail Merge with Pictures
 
Join Date: Dec 2013
Location: South Africa
Posts: 6
DewaldDeJager is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Simply inserting a hard-coded INCLUDEPICTURE field into the document won't work. You need to use a field construction similar to the one I've already provided in post #2 above. Since you haven't provided the information requested, though, I can't give specific advice for your situation.
Hi Paul,

Sorry, just noticed that for some reason, copying the code and then pasting it gives the hardcoded version. Here's the actual one typed out:

Code:
{ INCLUDEPICTURE "{ MERGEFIELD Country }.png" \* MERGEFORMAT \d }
The images are in the same directory as the Word document and they work fine, it's just that whenever I actual mail merge the document, they don't show correctly. Would be great if I could send you the files somehow.

Thanks in advance.

- Dewald
Reply With Quote
  #6  
Old 12-22-2013, 04:17 AM
macropod's Avatar
macropod macropod is offline Mail Merge with Pictures Windows 7 32bit Mail Merge with Pictures Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Again, as mentioned in post #2 at https://www.msofficeforums.com/mail-...ut-images.html:
Quote:
1. the pictures usually won't show correctly. You can refresh the fields (eg Ctrl-A, then F9) to get this to happen; and
2. even after updating the images, they remain linked to the image files, which can be an issue if you need to send the merged output to someone else.
The post goes on to show how both issues can be resolved, using a different field code.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 12-22-2013, 05:52 AM
DewaldDeJager DewaldDeJager is offline Mail Merge with Pictures Windows 8 Mail Merge with Pictures Office 2013
Novice
Mail Merge with Pictures
 
Join Date: Dec 2013
Location: South Africa
Posts: 6
DewaldDeJager is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
Again, as mentioned in post #2 at https://www.msofficeforums.com/mail-...ut-images.html:

The post goes on to show how both issues can be resolved, using a different field code.
Like I said, I've already tried your fix(es) in the second post and they didn't work for me. All I get is an output of "{ IF" where the images should be.

Alright, so here are the files. I retried your solutions in the second post and it still doesn't work but I'm guessing I'm doing something wrong. Hopefull you'll be able to help. Really appreciate it, Paul!

- Dewald

Last edited by DewaldDeJager; 12-23-2013 at 01:14 AM.
Reply With Quote
  #8  
Old 12-22-2013, 02:56 PM
macropod's Avatar
macropod macropod is offline Mail Merge with Pictures Windows 7 32bit Mail Merge with Pictures Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by DewaldDeJager View Post
Like I said, I've already tried your fix(es) in the second post and they didn't work for me. All I get is an output of "{ IF" where the images should be.
This is the first indication you've given of what the problem is. The simple answer, as stated in post #4 at https://www.msofficeforums.com/mail-...ut-images.html, is that you can't type the field braces (i.e. { }) - they must be created (in pairs) in the document via Ctrl-F9 (Cmd-F9 on a Mac).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #9  
Old 12-22-2013, 03:23 PM
DewaldDeJager DewaldDeJager is offline Mail Merge with Pictures Windows 8 Mail Merge with Pictures Office 2013
Novice
Mail Merge with Pictures
 
Join Date: Dec 2013
Location: South Africa
Posts: 6
DewaldDeJager is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
This is the first indication you've given of what the problem is. The simple answer, as stated in post #4 at https://www.msofficeforums.com/mail-...ut-images.html, is that you can't type the field braces (i.e. { }) - they must be created (in pairs) in the document via Ctrl-F9 (Cmd-F9 on a Mac).
Tried that and it doesn't show the "{ IF" anymore, but now it just shows blanks, even after refreshing. Thanks for the help so far!

Last edited by DewaldDeJager; 12-23-2013 at 01:14 AM.
Reply With Quote
  #10  
Old 12-22-2013, 05:12 PM
macropod's Avatar
macropod macropod is offline Mail Merge with Pictures Windows 7 32bit Mail Merge with Pictures Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The issue may be that the field code needs the path to work with the construction you're using. If you can be sure the pictures will always be in the same folder as the mailmerge main document, you can modify the field code by adding a FILENAME field thus:
{IF{INCLUDEPICTURE {IF TRUE "{FILENAME \p}\..\{MERGEFIELD Country}.png"} \d} {INCLUDEPICTURE {IF TRUE "{FILENAME \p}\..\{MERGEFIELD Country}.png"} \d}}
The above works in my testing, though your workbook has some active but unused rows at the bottom and this causes an extra page of labels with no data to be generated.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #11  
Old 12-23-2013, 01:15 AM
DewaldDeJager DewaldDeJager is offline Mail Merge with Pictures Windows 8 Mail Merge with Pictures Office 2013
Novice
Mail Merge with Pictures
 
Join Date: Dec 2013
Location: South Africa
Posts: 6
DewaldDeJager is on a distinguished road
Default

Hi Paul,

It works! Thanks for all the help. At first it was just giving blanks again but then I noticed I had to refresh my template and not the merged document. Thanks once again!

- Dewald
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge with Pictures Mail merge pictures from Access to Word Jolsen Mail Merge 7 11-22-2013 01:23 PM
Mail Merge Duplication of address on merge RICKY Mail Merge 1 09-26-2012 03:14 PM
Mail Merge with Pictures Templates, pictures, Mail Merge and Excel kckay Word VBA 1 05-17-2012 08:51 PM
Displaying contact pictures in e-mail header christer Office 0 10-03-2011 09:40 AM
Merge Fields, Pictures and output to email (with attachment) schilds71 Mail Merge 0 10-21-2010 12:02 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft