MailItem.Saved property (Outlook)
Returns a Boolean value that is True if the Outlook item has not been modified since the last save. Read-only.
Syntax
expression.Saved
expression A variable that represents a MailItem object.
Example
This Microsoft Visual Basic for Applications (VBA) example tests for the Close event and if the item has not been Saved, it uses the Save method to save the item without prompting the user.
Public WithEvents myItem As Outlook.MailItem
Public Sub Initialize_Handler()
Set myItem = Application.ActiveInspector.CurrentItem
End Sub
Private Sub myItem_Close(Cancel As Boolean)
If Not myItem.Saved Then
myItem.Save
MsgBox "Item was saved."
End If
End Sub
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.