XL97: Compile Error Running Recorded Macro That Uses SolverLast reviewed: March 13, 1998Article ID: Q171750 |
The information in this article applies to:
SYMPTOMSWhen you run a Visual Basic for Applications macro that you created by using the macro recorder, you may receive the following error message:
Compile error: Sub or Function not defined CAUSEThe problem occurs when you run a recorded a macro that uses the Solver add- in and you do not reference the Solver add-in.
RESOLUTIONTo resolve the problem, create a reference to the Solver add-in. To create a reference to the Solver add-in, follow these steps:
STATUSThis behavior is by design of Microsoft Excel.
REFERENCESFor more information about using references, click the Office Assistant in the Visual Basic Editor, type "references," click Search, and then click to view "Set a Reference to a Type Library." NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q120802 TITLE : Office: How to Add/Remove a Single Office Program or Component |
Additional query words: XL97 solver.xla
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |