Hello,
I have been searching the forum here and other places and can not get this to work without giving me the dreaded "complie Error Can't find project or library". I am able to run Solver manually from within excel with no issues. In tolls/reference "solver" is clicked. Yet, I still get this error.
I am running EXCEL 10, if this matters. Here is my code.
Sub Solver()
SolverReset
SolverOk SetCell:=Range("Balance"), _
MaxMinVal:=3, _
ValueOf:=0, _
ByChange:=Range("Amount")
SolverSolve UserFinish:=True
End Sub
I have been searching the forum here and other places and can not get this to work without giving me the dreaded "complie Error Can't find project or library". I am able to run Solver manually from within excel with no issues. In tolls/reference "solver" is clicked. Yet, I still get this error.
I am running EXCEL 10, if this matters. Here is my code.
Sub Solver()
SolverReset
SolverOk SetCell:=Range("Balance"), _
MaxMinVal:=3, _
ValueOf:=0, _
ByChange:=Range("Amount")
SolverSolve UserFinish:=True
End Sub