I'm trying to paste several Excel ranges as images on Outlook body.
I have this code working, but when i paste the image it erase the .HTMLBody
that I have already written inside the email body.
How do I keep the HTMLBody
paste the image after.
Dim r As Range
Set r = Range("A1:U49")
r.Copy
'Open a new mail item
Dim outlookApp As Outlook.Application
Set outlookApp = CreateObject("Outlook.Application")
Dim outMail As Outlook.MailItem
Set outMail = outlookApp.CreateItem(olMailItem)
Dim wordDoc As Word.Document
Set wordDoc = outMail.GetInspector.WordEditor
'Get its Word editor
With outMail
.display
.HTMLBody = "<p>Boa tarde,</p>" & _
"<p>Segue abaixo para acompanhamento <strong>gerencial</strong> dos ritmos de operações.</p>" & _
"<p>Essa visibilidade diária é importante para medir como estamos em relação ao plano (IBP-S&OP) e a capacidade informada.</p>" & _
"<p><em>LEGENDA </em></p>"
End With
wordDoc.Range.PasteAndFormat wdChartPicture