Microsoft KB Archive/285483

= PPT2002: Macro to Programmatically Change Encryption Provider Setting Does Not Work as Expected =

Article ID: 285483

Article Last Modified on 1/29/2007

-

APPLIES TO


 * Microsoft PowerPoint 2002 Standard Edition

-



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.

Additional query words: PPT prb

Keywords: kberrmsg kbpending kbprb KB285483

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.