返回 String 类型值,该值代表 Microsoft PowerPoint 通过密码加密文档所使用的算法。只读。
expression.PasswordEncryptionAlgorithm
expression 必选。该表达式返回“应用于”列表中的对象之一。
使用 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