Send an email with Headers and selected cells in the body- VBA

orengliki

New Member
Joined
Aug 13, 2018
Messages
1
Hi Guys!
I looked everywhere and couldn't find the answer I was looking for.
I need to create a macro which will send an e-mail from excel sheet.
The subject should contain pre-determined text, the current date and values(numbers) from two cells.
The body should have a header(range A2:L2) and a data I select from a specific row.
Here's the code I have so far. I can't see how to include the headers in the introduction filed as fixed range and add the selection below:

"
Sub Send_Range()

ActiveSheet.Range("A2:L2").Select


ActiveWorkbook.EnvelopeVisible = True


With ActiveSheet.MailEnvelope
.Introduction = "Dear Team,Please see the below payment request:"
.Item.To = "My@Email.com"
.Item.Subject = "Payment Request " & Date



End With
End Sub
"

I hope I'm clear...
Thanks!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

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