-
Oct 21st, 2020, 01:34 PM
#1
Word - Fill Image in Mail Merge
I have a word document that I use to send out mailers.
The document uses normal mail merge fields to fill out their information such as name and address, but what I'd like to be able to do is store the path of a local file in my address list so that an image can be loaded using that path.
Is this possible? If not, I'm going to resort to setting up simple web application that does this for me. The only issue is that the guy who built the word document made it in such a way that it would be a pain in the rear to convert it to HTML. So I'd like to avoid that if at all possible.
-
Oct 21st, 2020, 02:21 PM
#2
Re: Word - Fill Image in Mail Merge
-
Oct 22nd, 2020, 11:54 AM
#3
Re: Word - Fill Image in Mail Merge
Cool deal, I appreciate those links.
-
Oct 23rd, 2020, 02:55 AM
#4
Re: Word - Fill Image in Mail Merge
so that an image can be loaded using that path.
do you want different images for each merge doc?
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Oct 23rd, 2020, 08:12 AM
#5
Re: Word - Fill Image in Mail Merge
Yes, that is the idea. I would store the image location in the datasource and when it goes to do the mail merge, it will load the path of the currently iterated record.
-
Oct 23rd, 2020, 09:16 PM
#6
Re: Word - Fill Image in Mail Merge
Code:
{ INCLUDEPICTURE "c:\\staff\\pictures\\
{ MERGEFIELD “FirstName” }.jpg"
\*MERGEFORMAT \d }
https://onmerge.com/articleIncludePicture.html
this site offers detailed instructions for includepicture mergefield
and also offers a power tool (pay for, but offers free try out) to avoid some limitations and annoyances of the above
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|