MXL4: Macro Error when You Run a Recorded Solver Macro

Last reviewed: February 2, 1998
Article ID: Q100934

The information in this article applies to:
  • Microsoft Excel for the Macintosh, version 4.0

SYMPTOMS

When you run a recorded macro that includes commands from the Microsoft Excel Solver, you may receive a macro error in the first cell of the macro.

CAUSE

This macro error occurs because, when the macro is recorded, the name of the Solver Add-in macro is not enclosed in single quotation marks.

WORKAROUND

To avoid this macro error, manually remove the filename from each line of recorded macro code.

Example

If your macro code looks like the following

   =Solver Add-in!SOLVER.OK(!$A$3,3,25,(!$A$2))
   =Solver Add-in!SOLVER.SOLVE()
   =RETURN()

remove the filenames, so that the macro resembles the following:

   =SOLVER.OK(!$A$3,3,25,(!$A$2))
   =SOLVER.SOLVE()
   =RETURN()

REFERENCES

"User's Guide 2," version 4.0, pages 216-222 "Function Reference," version 4.0, pages 410, 412


Additional query words: 4.00 XL4
Version : MACINTOSH:4.0
Platform : MACINTOSH
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.