Copy Range into Email Body as chart

O177812

Board Regular
Joined
Apr 16, 2015
Messages
94
Office Version
  1. 365
  2. 2021
Hi,

I am looking to copy a range of cells into an email as a chart instead of an image.
What I have so far is not working. Any assistance would be greatly appreciated.

_____________________________________

Dim OutApp As Object
Dim OutMail As Object
Dim rng As Range

Set rng = ThisWorkbook.Worksheets("SUBMISSION").Range("A51:F57")

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)

With OutMail
.To = "carlos@gualaclosuresna.com"
.CC = "shelly@gualaclosuresna.com"
.Subject = Range("D6") & " | " & Range("D9") & " - PRICING UPDATE"
.HTMLBody = "Hi Team, " & "<br>" & "<br>" & _
Chr(10) & "Please update the pricing in Syspro for the below item: " & "<br>" & "<br>" & _
Chr(10) & rng& "<br>" & "<br>" & _
Chr(10) & "Please process at your earliest convenience and let me know if I can provide any additional information." & "<br>" & "<br>" & _
Chr(10) & "Have a great week!"
.Display
End With

_______________________________
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top