ID: Q151544
The information in this article applies to:
SYMPTOMS
When you run a procedure from a module that contains a reference to the Xlodbc.xla file, you may receive the following error message:
Attempt to register Xlodbc32.dll failed.
In Microsoft Excel 97, you may receive this error as soon as you open the
workbook that contains a reference to Xlodbc.xla.
This error occurs when all of the following are true:
-and-
-and-
CAUSE
When you establish a reference to another workbook or library, Microsoft Excel hard-codes the path of the file when the reference is established. The error occurs because the path to the Xlodbc.xla file is still valid, and Microsoft Excel attempts to open the incorrect Xlodbc.xla file.
The error does not occur if only one version of Microsoft Excel is installed on the computer. Instead, if the file cannot be found, you may receive the following error message:
Can't find project or library.
See articles referenced later in this article for more information about
this error.
For additional information, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q124277
TITLE : XL5 Err Msg: "Can't Find Project or Library" Running
Macro
ARTICLE-ID: Q131298
TITLE : XL5 How to Avoid the Error "Can't Find Project or
Library"
REFERENCES
For more information about calling procedures in Microsoft Excel 97, from the Visual Basic Editor, click the Office Assistant, type "calling procedures," click Search, and then click to view "Calling Sub and Function Procedures."
NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If the Assistant is not able to answer your query, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q176476
TITLE : OFF: Office Assistant Not Answering Visual Basic Questions
"Visual Basic User's Guide," version 5.0, chapter 4, "Organizing Procedures
and Modules in Workbooks"
For more information about calling procedures in other workbooks, click Microsoft Excel Help Topics on the Help Menu, click the Index tab and type:
Calling procedures
Additional query words: 5.00 5.00a 5.00c 7.00 7.00a 8.00 97
Keywords : kberrmsg kbprg kbdta KbVBA
Version : WINDOWS:7.0,97
Platform : WINDOWS
Last Reviewed: January 1, 1999