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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

solver

Status
Not open for further replies.

scottscott

Programmer
Dec 14, 2006
29
0
0
US
I am using solver in a macro and after i run solver it always prompts to ask if the solution is okay. I would just like to accept the solution. I tried using Application.DisplayAlerts = False but i still get the prompt. Is there a way to click ok through vba?
 
What is your actual code ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
'Solve Aexp(ct^B)
SolverOk SetCell:="$E$2", MaxMinVal:=2, ValueOf:="0", ByChange:="$E$1:$G$1"
SolverSolve

'Solve for the half life
SolverOk SetCell:="$K$1", MaxMinVal:=3, ValueOf:=".5", ByChange:="$I$1"
SolverSolve

After each SolverSolve a dialog box pops up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top