Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 690
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
XL solver macro brdotter Excel Worksheet Functions 0 March 19th 09 12:12 PM
Solver Macro [email protected] Excel Discussion (Misc queries) 2 August 24th 07 08:54 PM
Is it possible to run Solver using a macro? EA405 Excel Worksheet Functions 1 May 2nd 06 08:05 PM
help with solver or macro Dan[_24_] Excel Programming 1 September 23rd 03 04:31 PM


All times are GMT +1. The time now is 12:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"