Presentation.PasswordEncryptionAlgorithm プロパティ (PowerPoint)

プレゼンテーションをパスワードで暗号化するために、Microsoft PowerPoint で使用するアルゴリズムを取得します。 値の取得のみ可能です。

構文

PasswordEncryptionAlgorithm

Presentation オブジェクトを表す変数。

戻り値

文字列

注釈

SetPasswordEncryptionOptions メソッドを使用すると、PowerPoint ではパスワードを持つ文書の暗号化に使用するアルゴリズムを指定します。

次の使用例は、使用されているパスワード暗号化アルゴリズムが RC4 でない場合に、パスワードの暗号化オプションを設定します。

Sub PasswordSettings()
    With ActivePresentation
        If .PasswordEncryptionAlgorithm <> "RC4" Then
            .SetPasswordEncryptionOptions _
                PasswordEncryptionProvider:="Microsoft RSA SChannel Cryptographic Provider", _
                PasswordEncryptionAlgorithm:="RC4", _
                PasswordEncryptionKeyLength:=56, _
                PasswordEncryptionFileProperties:=True
        End If
    End With
End Sub

関連項目

プレゼンテーション オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。