Link to home
Start Free TrialLog in
Avatar of esu4236
esu4236Flag for United States of America

asked on

Recalculate automatically when using Solver

Is there a way to have Excel automatically recalculate a Solver formula if you just change one of the input cells without having to go in and click on "Solve?"
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

I think you would need a macro for this.

To do this

- record a macro for the solver process
The recorded macro would look something like
Sub Macro1()
.
.
.
End Sub


- right-click on the sheet name and click on "View code" and paste the following code lines. Replace the dots here with whatever was recorded above in place of the dots

Sub worksheet_change()
on error resume next
.
.
.
end sub

ASKER CERTIFIED SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of esu4236

ASKER

Thanks so much!
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.