The information in this article applies to:
SYMPTOMS
If you delete a project (.XLS, .XLA) or library (.OLB) file from the
hard drive that is referenced by a Visual Basic module, the project
or library may be listed twice in the Available References list for
the Visual Basic module (even when you close and reopen the workbook
that contains the reference). This behavior may also occur if you move
a project or library to a directory on the hard drive other than the
directory you installed Microsoft Excel to, or to a directory that is
contained in your path statement in the AUTOEXEC.BAT file.
CAUSEYou may encounter the above behavior if you delete a referenced project or library from the hard drive in the same session of Microsoft Excel while the workbook containing the reference is closed, and if all of the following conditions are true:
-and- -and- WORKAROUND
To remove the "extra" reference to the missing project or library,
you must exit Microsoft Excel.
MORE INFORMATION
In a Visual Basic module, you can use the References command on the
Tools menu to add a project or library as a reference to your module.
This allows you to access information in the project or library
directly from your module. For example, if you add the project
TASK.XLS to a module in BOOK1.XLS using the References dialog box,
you can run any procedure contained in TASK.XLS from any module in
BOOK1.XLS using only the procedure name.
No Reference FoundIf the project or library is not found, it is listed with the prefix "MISSING:" in the Available References list. If the project or library is not found in the same session of Microsoft Excel that it was added, and the conditions listed above are true, the reference will be listed a second time and the check box next to it will be cleared.Another Reference Found with Same NameIf the project or library is not found, but a project or library with the same name is found in a directory in the search order listed above, the found project or library replaces the previous one in the Available References list. If the project or library is not found in it's original location in the same session of Microsoft Excel that it was added, and the conditions listed above are true, the reference will be listed a second time and the check box next to it will be cleared.REFERENCESFor a definition of a Referenced Project, choose the Search button in Help and type: referenced project Additional query words: 5.00c
Keywords : kbprg |
Last Reviewed: October 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |