XL5: Visual Basic AddIns Method Example IncorrectLast reviewed: February 2, 1998Article ID: Q117661 |
The information in this article applies to:
SYMPTOMSIn Microsoft Excel 5.0, in Visual Basic Reference Help, the example for the AddIns method returns the following error messages when you run it:
Run-time error '1004': AddIns method of Application class failedNOTE: Page 42 of the Microsoft Press book "Microsoft Excel 5 Visual Basic for Applications Reference," contains this same example.
CAUSEThis error occurs because the reference to the Solver add-in in the Set statement of the macro is incorrect. The correct name of the Solver add-in is "Solver Add-In."
RESOLUTIONTo correct the statement, replace the name "Solver" in the Set statement with the name "Solver Add-In" as in the following example:
Set currentAddIn = Application.AddIns("Solver Add-In") REFERENCESMicrosoft Press, "Microsoft Excel 5 Visual Basic for Applications Reference," page 42
|
Additional query words: 5.00 5.00a 5.00c addin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |