Replicate excel solver code

jmersing

Well-known Member
Joined
Apr 14, 2004
Messages
887
I would like to apply the logic of Excel's Solver in Access. The solver model works for small applications but I'd like to use tables to supply data for the solver and execute it through code.

Just wondering if anyone has tried that before.

Thanks
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
I'm not sure you would get Solver to run in Access because it's an Excel add-in. The most likely answer would be to pull date from Access (filtered, so you don't blow teh row limit) and run the Solver from Excel as normal.

There aren't too many examples around that show how to code the Solver if you want to automate it, but VBA For Modelers (S. Christian Albright) does have some useful stuff. If you want to pull filtered data from Access to Excel, check out this tutorial.

Denis
 
Upvote 0

Forum statistics

Threads
1,214,657
Messages
6,120,771
Members
448,991
Latest member
Hanakoro

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