Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro for Solver
I wrote a macro in VBA for running solver. The problem is
that each time I run it, the Solver window in Excel is saving the constraints (adding again the arguments in the constraint window). I think I need to add an argument in order to Reset all the solver parameters before setting the target, changing, and constraint arguments. Any help on that? Thanks in advance Velero |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro for Solver
Is this what you are looking for?
SolverReset SolverOk _ SetCell:=Range("G14"), _ MaxMinVal:=1, _ ByChange:=Range("G9:I9") -- Dana DeLouis Using Windows XP & Office XP = = = = = = = = = = = = = = = = = "Velero" wrote in message ... I wrote a macro in VBA for running solver. The problem is that each time I run it, the Solver window in Excel is saving the constraints (adding again the arguments in the constraint window). I think I need to add an argument in order to Reset all the solver parameters before setting the target, changing, and constraint arguments. Any help on that? Thanks in advance Velero |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro for Solver
Yes. This was, exactly Thank you very much!!!!!! Velero -----Original Message----- Is this what you are looking for? SolverReset SolverOk _ SetCell:=Range("G14"), _ MaxMinVal:=1, _ ByChange:=Range("G9:I9") -- Dana DeLouis Using Windows XP & Office XP = = = = = = = = = = = = = = = = = "Velero" wrote in message ... I wrote a macro in VBA for running solver. The problem is that each time I run it, the Solver window in Excel is saving the constraints (adding again the arguments in the constraint window). I think I need to add an argument in order to Reset all the solver parameters before setting the target, changing, and constraint arguments. Any help on that? Thanks in advance Velero . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
XL solver macro | Excel Worksheet Functions | |||
Solver Macro | Excel Discussion (Misc queries) | |||
Is it possible to run Solver using a macro? | Excel Worksheet Functions | |||
help with solver or macro | Excel Programming |