|Excel Developer Reference|
Begins a Solver solution run. Equivalent to clicking Solve in the Solver Parameters dialog box.
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.
This example uses the Solver functions to maximize gross profit in a business problem. The SolverSolve function begins the Solver solution run.