Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Visual Basic Macro For Solver
I would like to know how to creat a macro for Resetill all the Solver options, before assinging parameters and run it. The follwing example, taken from the microsoft website, illustrates what´s going on. The macro runs okay, but each time is saving the constraints on the window. I presume it must be added an argument to reset all before. Any help will be appreciated. Velero http://support.microsoft.com/default.aspx? scid=/support/excel/content/solver/solver.asp Sub Maximum_Profit() Solverok setcell:=Range("G14"), maxminval:=1, _ bychange:=Range("G9:I9") SolverAdd CellRef:=Range("E3:E7"), Relation:=1, _ FormulaText:="$B$3:$B$7" SolverSolve UserFinish:=True SolverFinish KeepFinal:=1 End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Creating a Visual Basic Macro | Excel Discussion (Misc queries) | |||
Visual Basic Autoshapes Macro | Excel Discussion (Misc queries) | |||
MS Visual Basic Error...from MAcro | Excel Discussion (Misc queries) | |||
Visual Basic Macro | Excel Discussion (Misc queries) | |||
visual basic macro in excel | Excel Programming |