Solver Macro in Excel 2010

tomcatt014

New Member
Joined
May 9, 2011
Messages
1
Im trying to create a Macro is Excel 2010 that runs the solver that solves for an IRR based on a sale price. The IRR formula calculates correctly and the solver works if I run it manually. Whan I tried to record the macro I received an error message that read "Compile Error Can't find project or library" . Cell references below:

F264: IRR
E262: Sale Price

Code

Sub Solva()
'
' Solva Macro
'
'
SolverOk SetCell:="$F$264", MaxMinVal:=3, ValueOf:=0.1, ByChange:="$E$262", _
Engine:=1, EngineDesc:="GRG Nonlinear"
SolverOk SetCell:="$F$264", MaxMinVal:=3, ValueOf:=0.1, ByChange:="$E$262", _
Engine:=1, EngineDesc:="GRG Nonlinear"
SolverSolve
End Sub
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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