WritePassword Property

Microsoft PowerPoint Visual Basic

expression.WritePassword

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

Example

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

Sub SetSavePassword()
    ActivePresentation.WritePassword = complexstrPWD 'global variable
End Sub