Skip to content

Files

Latest commit

author
Docs Allowlist Management
Jan 12, 2024
5c5cb03 · Jan 12, 2024

History

History
57 lines (31 loc) · 1.23 KB

PowerPoint.Presentation.WritePassword.md

File metadata and controls

57 lines (31 loc) · 1.23 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.WritePassword property (PowerPoint)
vbapp10.chm583081
vbapp10.chm583081
PowerPoint.Presentation.WritePassword
42381e81-c5d0-3db1-f214-6619bbc6711f
08/02/2022
medium

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

Presentation Object

Work with Partial Documents

[!includeSupport and feedback]