View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Steve M Steve M is offline
external usenet poster
 
Posts: 19
Default SolverSolve return values

I have a macro where I use the Solver multiple times. I would like to
capture the value that SolverSolve returns (I understand that there are 1 of
13 values returned by the SolverSolve command) in order to determine how my
macro should respond. Does any know how to capture the returned value? I
currently use the following:

If SolverSolve(UserFinish:=True) = 4 Then.....

This works but if I use this approcah for each condition the SolverSolve
command appears to run for each statement. I would like to capture this
returned value to evaluate without re-running the solver for each test.

Thanks for you help.
Steve