WritePassword 属性 (PowerPoint)Presentation.WritePassword property (PowerPoint)

设置或返回保存对指定文档所做的更改时使用的密码。Sets or returns the password for saving changes to the specified document. 读/写。Read/write.


expressionexpression. WritePassword

_表达式_一个代表Presentation对象的变量。expression A variable that represents a Presentation object.

返回值Return value



本示例设置保存对活动演示文稿所做的更改时使用的密码。This example sets the password for saving changes to the active presentation.

Sub SetSavePassword()

    ActivePresentation.WritePassword = complexstrPWD 'global variable

End Sub

另请参阅See also

演示文稿对象Presentation Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.