ActiveSheet.Range(Cells(5, i), Cells(9, i)).ClearContents
bar.Start
SolverReset
SolverOk SetCell:=Cells(1, i), MaxMinVal:=1, ValueOf:=0, ByChange:=Range(Cells(5, i), Cells(9, i)), _
Engine:=1, EngineDesc:="GRG Nonlinear"
SolverAdd CellRef:=Range(Cells(5, i), Cells(9, i)), Relation:=4, FormulaText:="öåëîå"
SolverAdd CellRef:=Cells(12, i), Relation:=3, FormulaText:="0"
SolverAdd CellRef:=Range(Cells(5, i), Cells(9, i)), Relation:=3, FormulaText:="0"
SolverAdd CellRef:=Cells(5, i), Relation:=P1, FormulaText:=TextBox2.Value
SolverAdd CellRef:=Cells(6, i), Relation:=P2, FormulaText:=TextBox3.Value
SolverAdd CellRef:=Cells(7, i), Relation:=P3, FormulaText:=TextBox4.Value
SolverAdd CellRef:=Cells(8, i), Relation:=P4, FormulaText:=TextBox5.Value
SolverAdd CellRef:=Cells(9, i), Relation:=P5, FormulaText:=TextBox6.Value
SolverOk SetCell:=Cells(1, i), MaxMinVal:=1, ValueOf:=0, ByChange:=Range(Cells(5, i), Cells(9, i)), _
Engine:=1, EngineDesc:="GRG Nonlinear"
SolverOk SetCell:=Cells(1, i), MaxMinVal:=1, ValueOf:=0, ByChange:=Range(Cells(5, i), Cells(9, i)), _
Engine:=1, EngineDesc:="GRG Nonlinear"
bar.Update
SolverSolve True
Set bar = Nothing |