Hello,
I have created a macro to send email from my excel spreadsheet. But need help with adding more than one line for the body. Below is my code, but I need the macro to copy the body from C7-C13 (total of seven lines). Have attempted to do a range such as C7-C13 or C7,C13 but no success. Thanks for your help.
Sub send_email()
Dim OutApp As Object
Dim Outmail As Object
Set OutApp = CreateObject("Outlook.Application")
Set Outmail = OutApp.CreateItem(0)
With Outmail
.To = Range("C3").Value
.Subject = Range("C5").Value
.Body = Range("C7").Value
.display
End With
Set Outmail = Nothing
Set OutApp = Nothing
End Sub
I have created a macro to send email from my excel spreadsheet. But need help with adding more than one line for the body. Below is my code, but I need the macro to copy the body from C7-C13 (total of seven lines). Have attempted to do a range such as C7-C13 or C7,C13 but no success. Thanks for your help.
Sub send_email()
Dim OutApp As Object
Dim Outmail As Object
Set OutApp = CreateObject("Outlook.Application")
Set Outmail = OutApp.CreateItem(0)
With Outmail
.To = Range("C3").Value
.Subject = Range("C5").Value
.Body = Range("C7").Value
.display
End With
Set Outmail = Nothing
Set OutApp = Nothing
End Sub