All.
I am trying to attach, via copy/paste value, data in a worksheet to the body of an e-mail.
The data is in worksheet "Template" and will be using the range of A1:H15.
What I would like is to have the macro copy/paste value the range into the body of the e-mail.
I already have the code set up to attach the file I'm using.
How can incorporate this ?
The code is as follows:
Application.ActiveWorkbook.Worksheets("Monthly Pricing").Activate
ESubject = "Subject"
SendTo = "Smith.john@abc.com"
Subject = "PV_Aging Analysis"
Ebody = ""
NewFileName = "U:\MBS\USERS\MBS PV\mrkvar\Misc\New Business\PV_Aging Analysis-Dec.xls"
Set App = CreateObject("Outlook.Application")
Set Itm = App.CreateItem(0)
With Itm
.Subject = "PV_Aging Analysis"
.To = SendTo
.Body = Ebody
.Attachments.Add "U:\MBS\USERS\MBS PV\mrkvar\Misc\New Business\PV_Aging Analysis-Dec.xls"
.Send
End With
Set App = Nothing
Set Itm = Nothing
'
End Sub
'
End Sub
Thanx for any & all help.
I am trying to attach, via copy/paste value, data in a worksheet to the body of an e-mail.
The data is in worksheet "Template" and will be using the range of A1:H15.
What I would like is to have the macro copy/paste value the range into the body of the e-mail.
I already have the code set up to attach the file I'm using.
How can incorporate this ?
The code is as follows:
Application.ActiveWorkbook.Worksheets("Monthly Pricing").Activate
ESubject = "Subject"
SendTo = "Smith.john@abc.com"
Subject = "PV_Aging Analysis"
Ebody = ""
NewFileName = "U:\MBS\USERS\MBS PV\mrkvar\Misc\New Business\PV_Aging Analysis-Dec.xls"
Set App = CreateObject("Outlook.Application")
Set Itm = App.CreateItem(0)
With Itm
.Subject = "PV_Aging Analysis"
.To = SendTo
.Body = Ebody
.Attachments.Add "U:\MBS\USERS\MBS PV\mrkvar\Misc\New Business\PV_Aging Analysis-Dec.xls"
.Send
End With
Set App = Nothing
Set Itm = Nothing
'
End Sub
'
End Sub
Thanx for any & all help.