The information in this article applies to:
SUMMARYThe Solver add-in macro that ships with Microsoft Excel does not provide a macro function to display the main Solver dialog box. However, you can display this dialog box using the Run() macro command or the Run method in a Visual Basic for Applications procedure. MORE INFORMATIONMicrosoft 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 professionals 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/support/supportnet/overview/overview.asp Visual Basic for Applications ExampleThe following is an example using Visual Basic, Applications Edition:
NOTE: You may need to adjust the path to Solver.xla.
Microsoft Excel 4.0 and 4.0a for Windows
Description of macro:
A1: Name of macro. Microsoft Excel 4.0 for the MacintoshFor the above macro to work with Microsoft Excel for the Macintosh, replace the MS-DOS style file name with the appropriate Macintosh style file name (for example, "Macintosh HD: Microsoft Excel: Macro Library: Solver: Solver Add-In"). Additional query words: 4.0a 5.00xlm kbmacro
Keywords : kbcode kbprg kbtool PgmHowto |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |