XL: Error Calling Macro Contained in Open Add-In (115208)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q115208 SYMPTOMS
When you call a macro that is contained in an add-in file, either by using
the Call statement or by using the macro name in a Visual Basic procedure
in Microsoft Excel, you receive one of the following error messages, even
if the add-in that contains the macro is open at the time:
Sub or Function not defined
Compile error:
Sub or Function not defined
CAUSE
This behavior occurs when the add-in that contains the macro that you are
calling is not selected in the References dialog box. When you open an add-
in file, the add-in is added to the References dialog box, but is not
selected. This is by design of Microsoft Excel.
WORKAROUND
To avoid receiving an error message when you call a macro that is contained
in an add-in file from a Visual Basic procedure, do either of the
following:
REFERENCES
For a definition of a Referenced Project, click the Search button in Help
and type:
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbProgramming KB115208 |
---|
|