![]() |
|
|
|
#1
|
||||
|
||||
|
Hi okiegirl,
Some comments: 1. Mergefields are really only for use in a mailmerge, where they get data directly from a mailmerge datasource. 2. The syntax for a mergefield embedded in an INCLUDEPICTURE field would be either: {INCLUDEPICTURE "{MERGEFIELD Photo1}.jpg" \d} if the mergefield includes the path (which needs to includes double backslashes as the separators, or: {INCLUDEPICTURE "C:\\Users\\FilePath\\{MERGEFIELD\"Photo1\"}.j pg" \d} if the mergefield does not include the path. 3. If you're trying to insert the picture with a link via vba, you would need to have 'LinkToFile:=True'. Fields aren't required for this. 4. I note you're now using a Selection as the destination for the inserted picture. If you use a range object (eg pointing to a bookmark or a cell in a specified table), you don't need to select it beforehand. Furthermore, if the table cell has fixed dimensions, the inserted picture will automatically be constrained to fit the cell's size, maintaining the correct aspect ratio. In that case, you wouldn't need to code for sizing the shape. 5. The way you're using the 'Picture' bookmark doesn't allow for the picture to be changed. Any attempt to update it will result in multiple pictures. PS: When posting code, please use code tags (on the 'Go Advanced' tab).
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
| Tags |
| mail merge problem, pictures |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
File Path for Outlook 2007 pst
|
eliz.bell | Outlook | 2 | 10-29-2011 07:04 PM |
| Displaying contact pictures in e-mail header | christer | Office | 0 | 10-03-2011 09:40 AM |
| Modify default template to include file path | jacl | Excel | 1 | 03-26-2011 10:24 AM |
| Show Full File Path in Title Bar | paulj | Excel | 3 | 02-10-2010 07:18 AM |
get file name without Path
|
Ziggy1 | Word VBA | 1 | 09-29-2006 07:55 PM |