WritePassword Property

Microsoft PowerPoint Visual Basic

WritePassword Property

       

Sets or returns a String that represents a password for saving changes to the specified document. Read/write.

expression.WritePassword

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

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

Sub SetSavePassword()
    ActivePresentation.WritePassword = "secret"
End Sub