ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ActiveWorkbook.SendMail - Message body (https://www.excelbanter.com/excel-programming/351257-activeworkbook-sendmail-message-body.html)

al007

ActiveWorkbook.SendMail - Message body
 
Sub SendActiveWorkbook()
ActiveWorkbook.SendMail _
", _
Subject:="Test" & Format(Date, "dd/mmm/yy")
End Sub

How can I add a message body to the above mail??


Leith Ross[_486_]

ActiveWorkbook.SendMail - Message body
 

Hello Al007,

The SendMail method has no option for "Body" because the Workbook is
considered to be the body of the email. To have a body to the email you
would need to send the workbook as an attached file through another
program like Outlook.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=504252


Ron de Bruin

ActiveWorkbook.SendMail - Message body
 
Like Leith told you this is not possible with SendMail
But if you onlu use Outlook Express and not Outlook look at CDO
http://www.rondebruin.nl/cdo.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Leith Ross" wrote in message
...

Hello Al007,

The SendMail method has no option for "Body" because the Workbook is
considered to be the body of the email. To have a body to the email you
would need to send the workbook as an attached file through another
program like Outlook.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=504252





All times are GMT +1. The time now is 05:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com