Looking at you solver macro setup I do see some problems with it.
First of all the value in the target (object) cell should be a formula so when solver changes the value of the variable cells the value in the target cell should change.
In the cells to change you have specified B4:C4;C6. As target cell is C6 it should not be included as the change in B4:C4 should generate a change in C6 as
this cell should contain a formula. See comments above.
The constrains I see in the solver setup is not found in the macro so when macro is run solver will ignore this.
I do think you macro should look something like this:
As for your "subscription out of range" problem I can't pin it down but as you file has links to other files (cells B3:C3) it may have something to do with this as solver works only on the active sheet.
I've also changed SolverSolve Userfinish to "True" as this will make solver loop through all values for i from 9 to 109 before it stops.
Alf
Bookmarks