Table of contents
TOC
折叠目录
展开目录

Presentation.Saved 属性 (PowerPoint)Presentation.Saved Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

确定演示文稿自上次保存以来是否进行过更改。可读/写。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

MsoTriStateMsoTriState

注解Remarks

如果修改演示文稿的Saved属性设置为msoTrue,则不会提示用户保存更改,关闭该演示文稿时保存上次以来对它所做的所有更改都将丢失。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.

保存属性的值可以是其中一个MsoTriState常量。The value of the Saved property can be one of these MsoTriState constants.

常量Constant说明Description
msoFalsemsoFalse演示文稿自上次保存以来已进行过更改。Changes have been made to a presentation since it was last saved.
属性值为 msoTruemsoTrue演示文稿自上次保存以来没有进行过更改。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

概念Concepts

演示文稿对象Presentation Object

© 2018 Microsoft