XL: "Invalid Data Format" with .XLA in Visual Basic ModuleLast reviewed: February 2, 1998Article ID: Q111726 |
The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you attempt to add a reference to an add-in (.XLA), you may receive the following error message:
Invalid Data FormatIn Microsoft Excel for the Macintosh, you may see the following error message:
Error in Loading DLL CAUSEYou 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.
WORKAROUNDSIf 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:
MORE INFORMATIONThe following examples show you how to use the two methods described above. These examples demonstrate how to create a macro that displays the ANOVA dialog box (an Analysis ToolPak macro).
Application.ExecuteExcel4Macro("string") MethodIn order to run this macro, the version 4.0 add-in must be installed. To install an add-in, choose Add-Ins from the Tools menu. Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/supportnet/refguide/
Choosing the References Command from the Tools MenuIn order to run this macro, the Visual Basic version of the Analysis ToolPak must be among the add-ins available (to do this click Add-Ins on the Tools menu).
REFERENCESFor 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.
|
Additional query words: 5.00 5.00a 5.00c 7.00 add in Addins libraries
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |