"Do you want to save changes?" - how to disable that in VBA?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone,

I've created a code that generates an email message that is obviously
intended to be sent, however, the user can choose close and get a message "Do
you want to save changes?" that due to some conditions should not occur - is
possible to use commend like Excel Application.DisplayAlerts=False in Outlook
VBA module? Haven't found one.
 
Hello,
DisplayAlerts

This method or a similar does not exists in Outlook. Couldn`t you use
the Saved-Property to set it to true to avoid this message?

Peter
 
The only way to set the Saved property to True is to save the item.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54



Hello,
DisplayAlerts

This method or a similar does not exists in Outlook. Couldn`t you use
the Saved-Property to set it to true to avoid this message?

Peter
 
I'll save it and delete later in the code. That seems to be a way out.

Many thanks,

Regards
 
Back
Top