ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sending Workbook (https://www.excelbanter.com/excel-programming/372587-sending-workbook.html)

Noemi

Sending Workbook
 
Hi
I have got a command button which sends the worksheet to the applicable
mailbox however because the workbook is a large size (2000kb) I was wondering
if there is a way to automatically delete the email from outlook so as not to
clog up the mailbox.

Any suggestions????

thanks
Noemi

[email protected]

Sending Workbook
 
Noemi wrote:
Hi
I have got a command button which sends the worksheet to the applicable
mailbox however because the workbook is a large size (2000kb) I was wondering
if there is a way to automatically delete the email from outlook so as not to
clog up the mailbox.

Any suggestions????

thanks
Noemi



Hi Noemi,

Try...

With olNewMail
.DeleteAfterSubmit = True
.Send
End With



All times are GMT +1. The time now is 07:29 AM.

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