Excel VBA:我的SolverAdd没有添加我的约束
它添加了我的目标和变量范围。它不添加约束。我想不出来Excel VBA:我的SolverAdd没有添加我的约束,excel,vba,Excel,Vba,它添加了我的目标和变量范围。它不添加约束。我想不出来 SolverReset SolverOK setCell:=Range("Objective1"), _ maxMinVal:=1, _ byChange:=Range("VarChange1") SolverAdd cellRef:=Range("ExpenseSum1"), Relation:=1,
SolverReset
SolverOK setCell:=Range("Objective1"), _
maxMinVal:=1, _
byChange:=Range("VarChange1")
SolverAdd cellRef:=Range("ExpenseSum1"), Relation:=1, FormulaText:="allocationAmount"
SolverAdd cellRef:=Range("VarChange1"), Relation:=1, FormulaText:="allocationDivided"
SolverAdd cellRef:=Range("VarChange1"), Relation:=3, FormulaText:="Difference6"
SolverSolve userFinish:=False