Share via


Presentation.Saved Property

PowerPoint Developer Reference

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.

Visual Basic for Applications
  With Application.ActivePresentation
    If Not .Saved And .Path <> "" Then .Save
End With

See Also