Presentation.WritePassword property (PowerPoint)
Sets or returns the password for saving changes to the specified document. Read/write.
Syntax
expression. WritePassword
expression A variable that represents a Presentation object.
Return value
String
Remarks
If the presentation is not fully downloaded, the setting of this property fails and an error occurs. For more information about the Partial Documents, see Work with Partial Documents.
Example
This example sets the password for saving changes to the active presentation.
Sub SetSavePassword()
ActivePresentation.WritePassword = complexstrPWD 'global variable
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.