Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Using solver in vba to max value by changing weights? Help???

Hi, I am running solver right now to maximize a value by changing multiple
weights. I have 24 weights. I want to put it in VBA and then kick it off and
have it run in a loop all weekend. My problem is that the weights are never
the same. Sometimes it may be by changing weights 3 through 12 and then the
next I will need to change weights 1 through 7 and 14 through 24. Is there a
way to have solver determine which cells to change each time in the values? I
do know which cells will need to be changed each time. It is in a spread
sheet.

I wasn't sure if an else if statement would work or what. Thanks for any
help you can give.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Using solver in vba to max value by changing weights? Help???

http://office.microsoft.com/en-us/ex...CL100570551033

I think you can see that each time you run solver, if the definition of the
changing cells is going to change, you would need to configure solver to
know which cells to use.

If your not going to be there to do it, you will need to write code to
manage solver.

--
Regards,
Tom Ogilvy

"Need Help Fast!" wrote in message
...
Hi, I am running solver right now to maximize a value by changing multiple
weights. I have 24 weights. I want to put it in VBA and then kick it off
and
have it run in a loop all weekend. My problem is that the weights are
never
the same. Sometimes it may be by changing weights 3 through 12 and then
the
next I will need to change weights 1 through 7 and 14 through 24. Is there
a
way to have solver determine which cells to change each time in the
values? I
do know which cells will need to be changed each time. It is in a spread
sheet.

I wasn't sure if an else if statement would work or what. Thanks for any
help you can give.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Using solver in vba to max value by changing weights? Help???

Thanks for the reply. Is there a way to have solver know which ones it should
use? Each time before solver runs the weights will change and some will have
values and the other ones will be zero. Is there a way to have solver change
only the cells with values in them? Thanks for the help

"Tom Ogilvy" wrote:

http://office.microsoft.com/en-us/ex...CL100570551033

I think you can see that each time you run solver, if the definition of the
changing cells is going to change, you would need to configure solver to
know which cells to use.

If your not going to be there to do it, you will need to write code to
manage solver.

--
Regards,
Tom Ogilvy

"Need Help Fast!" wrote in message
...
Hi, I am running solver right now to maximize a value by changing multiple
weights. I have 24 weights. I want to put it in VBA and then kick it off
and
have it run in a loop all weekend. My problem is that the weights are
never
the same. Sometimes it may be by changing weights 3 through 12 and then
the
next I will need to change weights 1 through 7 and 14 through 24. Is there
a
way to have solver determine which cells to change each time in the
values? I
do know which cells will need to be changed each time. It is in a spread
sheet.

I wasn't sure if an else if statement would work or what. Thanks for any
help you can give.




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
Solver: order of changing cels? Toosje Excel Discussion (Misc queries) 0 April 21st 09 11:00 AM
Weighted average with changing weights… l[_2_] Excel Worksheet Functions 1 October 8th 08 04:08 PM
Can I use solver to estimate several values by changing several c. AO Excel Worksheet Functions 1 June 24th 08 07:09 AM
Changing cells in solver. Ricardo S. Excel Worksheet Functions 1 October 23rd 06 03:31 AM
HOW DO I CHANGE A SCHEDULE USING SOLVER WITHOUT CHANGING EACH DAY? TARA BROWN Excel Worksheet Functions 1 August 5th 06 01:14 AM


All times are GMT +1. The time now is 05:14 PM.

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

About Us

"It's about Microsoft Excel"