返回 Microsoft PowerPoint 使用密码加密文档时所用的算法。 只读。
语法
expression。 PasswordEncryptionAlgorithm
表达 一个代表 Presentation 对象的变量。
返回值
String
备注
使用 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 支持和反馈,获取有关如何接收支持和提供反馈的指南。