I have 7 different cell ranges I need to copy and paste as bitmap images in my e-mail body.
The ranges are E3, V29; e30, v54; e55, v80; e81 , v145; x3, af8; x9, af37; e3, v180
Sub Criaremail()
Dim Outlook As Object
Dim email As Object
Dim xInspect As Object
Dim pageEditor As Object
assunto = Sheets("Corpo do Email").Range("AH1")
para = Sheets("Corpo do Email").Range("AH2")
Set Outlook = CreateObject("Outlook.application")
Set email = Outlook.CreateItem(0)
With email
.Display
.Subject = assunto
.To = para
.Body = ""
Set xInspect = email.GetInspector
Set pageEditor = xInspect.WordEditor
Sheets("Corpo do Email").Range("E3:V29").Copy
pageEditor.Application.Selection.Start = Len(.Body)
pageEditor.Application.Selection.End =
pageEditor.Application.Selection.Start
pageEditor.Application.Selection.PasteSpecial (wdPasteBitmap)
.Display
Set pageEditor = Nothing
Set xInspect = Nothing
End With
Set email = Nothing
Set Outlook = Nothing
End Sub