Increase = 0
Do While Increase <= 1
Cells(32, 23) = Increase
Application.Run "SOLVER.xla!Auto_Open"
SolverOk SetCell:="$C$32", MaxMinVal:=2, ValueOf:="0", ByChange:="$C$32"
SolverSolve
Cells(Number0, 27) = Cells(34, 3)
Increase = Increase + 0.01
Loop
上面是个例子,主要是说明解决办法是在SolverSolve后增加参数,变成SolverSolve Userfinish:=True。
温馨提示:答案为网友推荐,仅供参考