How to Save Changes without Prompt when Closing a Modified Email in Your Outlook

When you close an email after some modifications, you will receive a prompt asking whether to save the changes. If you always select “Yes”, why not just let Outlook auto save changes when you close an email? This article will teach you to realize it.

It is inevitable that at times, you’ll make some changes to emails, such as altering email subject or removing attachments and so on. After that, when you close this email, you’ll definitely be prompted if you want to save the changes. If you dislike the prompt and hope that Outlook can auto save changes, you can read on to get the following method.

Save Changes without Prompt when Closing a Modified Email

Save Changes without Prompt when Closing a Modified Email

  1. In the first place, launch your Outlook application.
  2. Then, after getting into Outlook, you need to click the “Alt + F11” key button.
  3. In the subsequent “Microsoft Visual Basic for Applications” window, you can find and open the “ThisOutlookSession” project.
  4. Next, you ought to copy and paste the following VBA code into this project.
Private WithEvents objInspectors As Outlook.Inspectors
Private WithEvents objMail As Outlook.MailItem

Private Sub Application_Startup()
    Set objInspectors = Outlook.Application.Inspectors
End Sub

Private Sub objInspectors_NewInspector(ByVal Inspector As Inspector)
    'Get the current email
    If TypeOf Inspector.currentItem Is MailItem Then
       Set objMail = Inspector.currentItem
    End If
End Sub

'Occurs when closing this email
Private Sub objMail_Close(Cancel As Boolean)
    'Save it if not saved
    If objMail.Saved = False Then
    End If
End Sub

VBA Code - Save Changes without Prompt when Closing a Modified Email

  1. After that, you have to sign this code.
  • First off, click the ‘Tools” button in the menu bar.
  • Then, from the drop down list, select “Digital Signature” option.
  • Next, a dialog box will pop up, where you can choose a digital certificate to assign it to the current VBA project.
  1. Later, you need to check your Outlook macro security settings ensuring that digitally signed macros have been enabled.
  2. Finally, you can restart Outlook or click into “Application_Startup” subroutine and press “F5” to activate this macro.
  3. From now on, every time when you close an email, Outlook will auto save the changes without prompting you any more.

Cope with Outlook Problems

It is almost an unquestioned fact that Outlook is vulnerable to numerous factors. However, it’s fortunate that Outlook is natively equipped with a built-in utility for dealing with Outlook issues. Hence, once you encounter any troubles in Outlook, you can firstly try this tool. Yet, to be honest, it is only capable of resolving small glitches. In face of serious damaged Outlook file, it will not be a lot of help. At that time, you have no choice but to resort to external tools like DataNumen Outlook Repair, which can rescue Outlook file in a breeze.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including corrupt sql and outlook repair software products. For more information visit

Leave a Reply

Your email address will not be published. Required fields are marked *