Using solver in vba to max value by changing weights? Help???

N

Need Help Fast!

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.
 
N

Need Help Fast!

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
 

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

Top