Hello all,
I am using Ron de Bruin's VBA to send workbook as attachment.
I want to include a range in the body, however, I cannot get it to work.
I am using the following statement in the body:
.Body = Range(R23:V49).Value
Here's the full Destwb
----------------
With Destwb
.SaveAs TempFilePath & TempFileName & FileExtStr, _
FileFormat:=FileFormatNum
On Error Resume Next
With OutMail
.To = "email@domain.com"
.CC = ""
.BCC = ""
.Subject = "SSM Dealer Purchase Order - " & Range("L15").Value
.Body = Range(R23:V49).Value
.Attachments.Add Destwb.FullName
.Send
End With
On Error GoTo 0
.Close SaveChanges:=False
End With
----------------
Any suggestions greatly appreciated.
Thanks
I am using Ron de Bruin's VBA to send workbook as attachment.
I want to include a range in the body, however, I cannot get it to work.
I am using the following statement in the body:
.Body = Range(R23:V49).Value
Here's the full Destwb
----------------
With Destwb
.SaveAs TempFilePath & TempFileName & FileExtStr, _
FileFormat:=FileFormatNum
On Error Resume Next
With OutMail
.To = "email@domain.com"
.CC = ""
.BCC = ""
.Subject = "SSM Dealer Purchase Order - " & Range("L15").Value
.Body = Range(R23:V49).Value
.Attachments.Add Destwb.FullName
.Send
End With
On Error GoTo 0
.Close SaveChanges:=False
End With
----------------
Any suggestions greatly appreciated.
Thanks