Currently I have this code to send an email with Excel attached and with a picture in body of email:
Sub emails()
'''''''''''''''''create an email'''''''''''''''''''''''''''''''''
Set objeto_outlook = CreateObject("Outlook.application")
Set Email = objeto_outlook.createitem(0)
Dim strTime As String
Dim scorpo As String
'current time
strTime = Date
Email.Display
Email.To = "example@outlook.com"
Email.CC = ""
Email.CC = ""
Email.Subject = "Orders" & " " & strTime
Email.Body = "Good morning," & Chr(10) & Chr(10) & "Orders" & " " & strTime & Chr(10) & Chr(10) & img = "G:\top.jpg'><br><br>" & Chr(10) & Chr(10) & "Best regards"
Email.Attachments.Add ("G:\EXPORT.XLSX")
Email.Send
End Sub
However, at email body the code isn't correct... because i don't know what i need to change to add a picture between of the text.I even have the image already generated from excel and saved in the folder. I would like to get the image from the folder and not directly from excel