PPT2002: Macro to Programmatically Change Encryption Provider Setting Does Not Work as Expected (285483)



The information in this article applies to:

  • Microsoft PowerPoint 2002

This article was previously published under Q285483

SYMPTOMS

When you run a Microsoft Visual Basic for Applications (VBA) macro to change the encryption provider setting, the macro may run without error, but the setting is not changed as expected.

CAUSE

This behavior occurs when all of the following conditions are true:
  • The PasswordEncryptionProvider and PasswordEcryptionAlgorithm settings are set to strings that are spelled correctly.

    -and-
  • The PasswordEcryptionAlgorithm setting is in the correct case.

    -and-
  • The PasswordEncryptionProvider setting is not in the correct case.
The PasswordEncryptionProvider setting is case-sensitive, but does not cause a run-time error if the value is in not in the correct case.

MORE INFORMATION

If you set either the PasswordEncryptionAlgorithm or PasswordEncryptionProvider setting to an invalid value, the macro returns the following run-time error:
Run-time error '-21474672959 (80004005)' Presentation (unknown member): Failed
The PasswordEncryptionAlgorithm setting is also case-sensitive, and any case-sensitive errors trigger the same run-time error.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kberrmsg kbpending kbprb KB285483