Macro for Solver

  • Thread starter Thread starter Velero
  • Start date Start date
V

Velero

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
 
Is this what you are looking for?

SolverReset

SolverOk _
SetCell:=Range("G14"), _
MaxMinVal:=1, _
ByChange:=Range("G9:I9")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top