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

ID: Q244041


The information in this article applies to:
  • Microsoft Visual Basic for Applications (VBA) Software Development Kit (SDK), versions 5.0, 6.0, 6.1


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 this to be a bug in the Microsoft products listed at the beginning of this article.

Additional query words: VBASDK

Keywords : kbSDKVBA kbGrpDSO kbDSupport
Version : winnt:5.0,6.0,6.1
Platform : winnt
Issue type : kbbug


Last Reviewed: October 25, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.