hi all,
Does anyone has a solution on how to insert an image into an HTML E-Mail body with a Macro when the files name was previously defined?
The Filename was defined as follow and stored in a local folder.
Filename = Range("C49").Value
The idea is to create Factsheets and each has a different name. Therefore the HTML Code has to be flexible.
I'm using this code for this step:
With OLmail
.to = " "
.cc = " "
.BCC = " "
.Subject = " "
.attachments.Add "N:\" & Filename & ".emf", 0
'here you can ajust the picture size in the mailbody (width and heigt)
.htmlbody = .htmlbody & "<img src='cid:Filename.emf'" & "width='1000' heigt='4000'><br>"
.Display
End With
Thanks for your response
Flo
Bookmarks