BUG: Programmatically Adding a Reference to a Locked VBA Project Causes a Password Dialog (244041)
The information in this article 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.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 10/27/1999 |
---|
Keywords: | kbbug KB244041 |
---|
|