Share via


Presentation.WritePassword Property

PowerPoint Developer Reference

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.

Visual Basic for Applications
  Sub SetSavePassword()
    ActivePresentation.WritePassword = complexstrPWD 'global variable
End Sub

See Also