"Invalid Data Format" with .XLA in Visual Basic Module (111726)
The information in this article applies to:
- Microsoft Excel for Windows 95 7.0a
- Microsoft Excel for Windows 5.0c
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q111726 SYMPTOMS
In Microsoft Excel, when you attempt to add a reference to an add-in
(.XLA), you may receive the following error message:
Invalid Data Format
In Microsoft Excel for the Macintosh, you may see the following error
message:
Error in Loading DLL
CAUSE
You receive this error message if you attempt to add a reference to an add-
in file that does not contain a Visual Basic module. If an add-in contains
only a Microsoft Excel 4.0 macro (such as ANALYSIS.XLA or Analysis
Functions on the Macintosh), it cannot be added as a reference.
WORKAROUNDS
If you want to use a Microsoft Excel version 4.0 macro function that is
contained in a version 4.0 add-in (such as the Analysis ToolPak) in a
Visual Basic procedure, do either of the following:
- Use the Application.ExecuteExcel4Macro("string") method. The arguments
for this method are the name and arguments of an Excel 4.0 macro
function (without the equal sign).
-or-
- If the function you want to use is included in a version 5.0 add-in
(such as the Analysis ToolPak - VBA), either choose the References
command from the Tools menu while you are in the Visual Basic module or
add the add-in that contains the functions.
REFERENCES
For more information about working with Microsoft Excel 4.0 macro functions
in Microsoft Excel 5.0 or 7.0, choose Reference Information in the Help
Contents window, and then choose Microsoft Excel Macro Functions Contents.
In the Microsoft Excel Macro Functions Contents window, choose Visual Basic
Equivalents for Functions and Commands and then choose More About
Converting Microsoft Excel Version 4.0 Macros To Visual Basic procedures.
Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbcode kbdtacode kberrmsg kbprb KB111726 |
---|
|