I'm adding a "Send email" button to a working sheet and want to add a picture to the Outlook email. The picture is a graph which gets updated every week.
It looks like this. I guess I have to make a function somewhere in the body, wherever is suitable for the output:
Sub Create_Email()
'Define outlook variables
Dim OutApp As Object
Dim OutMail As Object
'Allocated
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
Dim NextParagraph As String
NextParagraph = vbNewLine & vbNewLine
'Inside the with box is what we send
With OutMail
.To = "hej@hejsen.com"
'.cc =
'.bcc =
.Subject = "Let us see if this will all show in the subject line"
.Body = "Good morning everyone," & NextParagraph & "The Monday Morning Report is attached." & NextParagraph & _
"Comps are"
.Display
End With
End Sub