Bonjour à tous,
Et avec un "On error resume next" comme ci-dessous :
Application.DisplayAlerts = False
SolverReset
Sheets("Summary").Activate
SolverOk SetCell:="$c$35", MaxMinVal:=3, ValueOf:="0", ByChange:="$B$16:$B$18"
SolverAdd cellref:=Worksheets("Summary").Cells(35, 4), _
relation:=2, _
formulatext:=0
SolverAdd cellref:=Worksheets("Summary").Cells(50, 4), _
relation:=2, _
formulatext:=0
SolverOptions MaxTime:=600, Iterations:=10000, Precision:=0.1, _
AssumeLinear:=False, StepThru:=False, Estimates:=2, Derivatives:=1, _
SearchOption:=1, IntTolerance:=20, Scaling:=False, Convergence:=0.1, _
AssumeNonNeg:=False
On error resume next 'ICI
SolverSolve UserFinish:=True
On error resume next 'ou ICI
Application.DisplayAlerts = True
Sans être sûr...