ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   is there anyway to call the Solver add-in as a function? (https://www.excelbanter.com/excel-programming/308754-re-there-anyway-call-solver-add-function.html)

Jerry W. Lewis

is there anyway to call the Solver add-in as a function?
 
Solver is tightly tied to worksheet cells. You can set up and run
Solver from VBA, but you would still have to load and change workseet
cells. A VBA function that is called from a worksheet can only return a
value, it cannot modify its environment (in particular it cannot change
cell values), and thus cannot use Solver. A VBA function could use
solver when called from a Sub instead of a worksheet cell.

Jerry

JParshley wrote:

I would like to call the Solver add-in as a function from a cell and feed it
the input parameters on the main Solver dialog box. Is there a way to do this?




All times are GMT +1. The time now is 07:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com