Hi I would like to have the text in range A1 and the text in Columns B and C displayed as the body of my email. The macro I currently have (below) will not include Columns B and C in the body even if I get rid of range A1 in the code.
Can you not have multiple cell contents as the email's body? Help, please!
Sub Send_StatusUpdate()
Dim olApp As Outlook.Application
Dim olMail As MailItem
Dim CurrFile As String
Set olApp = New Outlook.Application
Set olMail = olApp.CreateItem(olMailItem)
CurrFile = ActiveWorkbook.FullName
Rows("3:3").Select
Selection.AutoFilter
Selection.AutoFilter Field:=6, Criteria1:="LEQO"
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With olMail
.To = "lizblair07@gmail.com"
.CC = ""
.BCC = ""
.Subject = "Status Update"
.body = ActiveSheet.Range("A1").Text & ActiveSheet.Range("B:C").Text & vbCrLf
.Send
Rows("3:3").Select
Selection.AutoFilter
MsgBox ("Emails Sent For: LEQO")
End With
End Sub
Can you not have multiple cell contents as the email's body? Help, please!
Sub Send_StatusUpdate()
Dim olApp As Outlook.Application
Dim olMail As MailItem
Dim CurrFile As String
Set olApp = New Outlook.Application
Set olMail = olApp.CreateItem(olMailItem)
CurrFile = ActiveWorkbook.FullName
Rows("3:3").Select
Selection.AutoFilter
Selection.AutoFilter Field:=6, Criteria1:="LEQO"
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
With olMail
.To = "lizblair07@gmail.com"
.CC = ""
.BCC = ""
.Subject = "Status Update"
.body = ActiveSheet.Range("A1").Text & ActiveSheet.Range("B:C").Text & vbCrLf
.Send
Rows("3:3").Select
Selection.AutoFilter
MsgBox ("Emails Sent For: LEQO")
End With
End Sub