Solver Using VBA

Swoootie

Board Regular
Joined
Jun 28, 2012
Messages
66
I am producing a template Excel based optamisation tool using Solver. I want to roll this out to other members of the team but I would like there to be as little manual intervention as possible. Ideally, where there are a number of possible solutions to a problem I would like VBA to select and output a solution rather than promting the user or producing numerous pop ups.
Is there a way to do this.

Thanks
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I'll prepare a template to send over to you, as I cannot send any sample data over in its current format.
Thanks for your help.
 
Upvote 0
Hi Andrew,

Saving the spreadsheet as an older Excel file (i.e. as an .xls and not .xlsm file) has somehow resolved the issue of the pop-ups. However in saving this file as a Excel 97-2003 workbook, the functionality of my sheet is compromised and Solver no longer provides me with a solution like it did in the newer .xlsx or .xlsm versions.

Are you aware of problems with using Solver in VBA pre 2007?

I'm really desperate for a solution to this, as the Solver code that I set up previously (that I sent earlier in this thread) worked fine but now no longer performs as expected.

Thanks
 
Upvote 0
It's like the optamisation is not happening. The pop up that Solver did not find a solution appears very quickly and I can see from the results that there has been no iterative trial and error taking place as I know there is a definite solution (I've worked one out by hand). </SPAN>
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top