Send Excel data in outlook body with borders

Send Excel data in outlook body with borders
Send data from Excel to the body of your outlook email with the borders and colours.
Check out my online courses
Become an Affiliate and earn 25% on Course Sales

The code
Sub esendtable()
Dim outlook As Object
Dim newEmail As Object
Dim xInspect As Object
Dim pageEditor As Object

Set outlook = CreateObject(“Outlook.Application”)
Set newEmail = outlook.CreateItem(0)

With newEmail
.To = Sheet1.Range(“A2”).Text
.CC = “”
.BCC = “”
.Subject = “Data”
.Body = “Please find the requested information” & vbCrLf & “Best Regards”

Set xInspect = newEmail.GetInspector
Set pageEditor = xInspect.WordEditor


pageEditor.Application.Selection.Start = Len(.Body)
pageEditor.Application.Selection.End = pageEditor.Application.Selection.Start
pageEditor.Application.Selection.PasteAndFormat (wdFormatPlainText)
Set pageEditor = Nothing
Set xInspect = Nothing
End With

Set newEmail = Nothing
Set outlook = Nothing

End Sub

For more help visit my website or email me at [email protected].

Contact me regarding customizing this template for your needs.

Excel one-on-one on-line training available. Email me to arrange.

I am able to provide online help on your computer at a reasonable rate.

Check out my next one-hour Excel Webinar

I use a Blue condensor Microphone to record my videos, here is the link

Check out Crowdcast for creating your webinars

If you need to buy Office 2019 follow

I use Tube Buddy to help promote my videos
Check them out

Follow me on Facebook


Follow me on twitter

IG @barbhendersonconsulting

You can help and generate a translation to you own language

*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I’ve used or have experience with.

Rate this post