Presentation.Saved property (PowerPoint)
Determines whether changes have been made to a presentation since it was last saved. Read/write.
Syntax
expression.Saved
expression A variable that represents a Presentation object.
Return value
MsoTriState
Remarks
If the Saved property of a modified presentation is set to msoTrue, the user won't be prompted to save changes when closing the presentation, and all changes made to it since it was last saved will be lost.
The value of the Saved property can be one of these MsoTriState constants.
Constant | Description |
---|---|
msoFalse | Changes have been made to a presentation since it was last saved. |
msoTrue | No changes have been made to a presentation since it was last saved. |
Example
This example saves the active presentation if it is been changed since the last time it was saved.
With Application.ActivePresentation
If Not .Saved And .Path <> "" Then .Save
End With
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.