SolverSave Function
Excel Developer Reference |
Saves the Solver problem specifications on the worksheet.
Before you use this function, you must establish a reference to the Solver add-in. In the Visual Basic Editor, with a module active, click References on the Tools menu, and then select the Solver.xlam check box under Available References. If Solver.xlam does not appear under Available References, click Browse and open Solver.xlam in the \office12\library\Solver subfolder.
SolverSave(SaveArea)
SaveArea Required Variant. The range of cells where the Solver model is to be saved. The range represented by the SaveArea argument can be on any worksheet, but you must specify the worksheet if it is not the active sheet. For example, SolverSave("Sheet2!A1:A3")
saves the model on Sheet2 even if Sheet2 is not the active sheet.
Example
This example uses the Solver functions to maximize gross profit in a business problem. The SolverSave function saves the current problem to a range on the active worksheet.
|