JiggersBass
New Member
- Joined
- May 20, 2022
- Messages
- 13
- Office Version
- 365
- 2010
- Platform
- Windows
Sub Email()
'Copy range of interest
Dim r As Range
Set r = Range("a1:g20")
r.Copy
'Open a new mail item
Set outlookApp = CreateObject("Outlook.Application")
Set outMail = outlookApp.CreateItem(olMailItem)
strbody = "Hi there" & vbNewLine & vbNewLine & _
"This is line 1" & vbNewLine & _
"This is line 2" & vbNewLine & _
"This is line 3" & vbNewLine & _
"This is line 4"
With outMail
.to = Range("a22")
.cc = Range("a23")
.Subject = Range("a24")
End With
'Get its Word editor
outMail.Display
Set wordDoc = outMail.GetInspector.WordEditor
wordDoc.Range.PasteAndFormat wdChartPicture
'To paste as a table
'wordDoc.Range.PasteExcelTable LinkedToExcel:=False, WordFormatting:=False, RTF:=False
End Sub
'Copy range of interest
Dim r As Range
Set r = Range("a1:g20")
r.Copy
'Open a new mail item
Set outlookApp = CreateObject("Outlook.Application")
Set outMail = outlookApp.CreateItem(olMailItem)
strbody = "Hi there" & vbNewLine & vbNewLine & _
"This is line 1" & vbNewLine & _
"This is line 2" & vbNewLine & _
"This is line 3" & vbNewLine & _
"This is line 4"
With outMail
.to = Range("a22")
.cc = Range("a23")
.Subject = Range("a24")
End With
'Get its Word editor
outMail.Display
Set wordDoc = outMail.GetInspector.WordEditor
wordDoc.Range.PasteAndFormat wdChartPicture
'To paste as a table
'wordDoc.Range.PasteExcelTable LinkedToExcel:=False, WordFormatting:=False, RTF:=False
End Sub