Share via


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

Example

This example sets the password for saving changes to the active presentation.

Sub SetSavePassword()

    ActivePresentation.WritePassword = complexstrPWD 'global variable

End Sub

See Also

Concepts

Presentation Object

Presentation Object Members