Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excell: macro to handle Solver errors

Status
Not open for further replies.

tab245

Technical User
Sep 17, 2002
13
US
Hi!

I am fairly new to VBA, and I would appreciate any advice.

I have recorded a macto to run SOLVER. However, I do not know how to read SOLVER results automatically. I mean, how to check if SOLVER solution converges or not.

I added the lines that takes solver control from the user:
' Do not display the Solver Results dialog box.
SolverSolve UserFinish:=True

' Finish and keep the final results.
SolverFinish KeepFinal:=1

Is there any way to check if SOLVER solution converges - before the final result is recorded?

Thank you!

Tanya





 
O'k!
I just got the answer:

I should check the value of SolverSolve. I can use something like this:

If SolverSolve <> 0 Then Stop

Thank's anyhow!

Tanya

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top