Microsoft KB Archive/244041

= BUG: Programmatically Adding a Reference to a Locked VBA Project Causes a Password Dialog =

Article ID: 244041

Article Last Modified on 10/27/1999

-

APPLIES TO


 * Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 5.0
 * Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 6.0
 * Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK) 6.1

-



This article was previously published under Q244041



SYMPTOMS
If a VBA host attempts to programmatically add a reference to a locked VBA project using the References::CreateFromFile method, a dialog box requesting the password for that project is displayed. If the dialog is dismissed, the reference is added to the locked project.



CAUSE
This problem is caused because VBA attempts to expand the tree view of the locked VBA project to display the newly-referenced project. Because the tree view of the locked project cannot be displayed without providing the correct password, a dialog is displayed. If the dialog is dismissed, the reference is set normally.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Additional query words: VBASDK

Keywords: kbbug kbpending KB244041

-

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

© Microsoft Corporation. All rights reserved.