zakk
Mechanical
- May 3, 2002
- 48
I am writing an Excel 2010 VBA code that calls Solver and I need to tell Solver to uncheck the "Make Unconstrained Variables Non-Negative" box. The default is "True", ie. the box is checked. When I uncheck the box and run my code, and ask Solver to return the state of the box (SolverGet(TypeNum:=20)), it keeps coming back as "True". I can't find any function in the MSDN Library that will allow me to change it to "false". It seems you can change every other variable but this one. Any thoughts, as I have little experience in VBA.
The "Make Unconstrained Variables Non-Negative" feature is new in Excel 2007.
The "Make Unconstrained Variables Non-Negative" feature is new in Excel 2007.