- Katılım
- 3 Ocak 2012
- Mesajlar
- 4
- Excel Vers. ve Dili
-
Excell - 2007
Türkçe
Sub Cöz()
'
' Cöz Makro
'
'
SolverOk SetCell:="Min_Maliyet", MaxMinVal:=2, ValueOf:="0", ByChange:="Karar_Değişkeni"
SolverAdd CellRef:="Used_Kalori", Relation:=2, FormulaText:="Available_kalori"
SolverAdd CellRef:="Used_Karbonhidrat", Relation:=3, FormulaText:="Available_Karbonhidrat"
SolverAdd CellRef:="Used_Yağ", Relation:=3, FormulaText:="Available_Yağ"
SolverAdd CellRef:="Used_Protein", Relation:=3, FormulaText:="Available_Protein"
SolverOk SetCell:="Min_Maliyet", MaxMinVal:=2, ValueOf:="0", ByChange:="Karar_Değişkeni"
SolverOptions MaxTime:=100, Iterations:=100, Precision:=0.000001, AssumeLinear _
:=True, SearchOption:=1, _
IntTolerance:=5, Scaling:=False, Convergence:=0.0001, AssumeNonNeg:=True
SolverOk SetCell:="Min_Maliyet", MaxMinVal:=2, ValueOf:="0", ByChange:="Karar_Değişkeni"
SolverSolve
End Sub
Kodunu yazdığımızda Compile error Sub or Function not defined hatasını veriyor nerde yanlışlık olduğunu anlamadım yardımcı olabilirmisiniz
'
' Cöz Makro
'
'
SolverOk SetCell:="Min_Maliyet", MaxMinVal:=2, ValueOf:="0", ByChange:="Karar_Değişkeni"
SolverAdd CellRef:="Used_Kalori", Relation:=2, FormulaText:="Available_kalori"
SolverAdd CellRef:="Used_Karbonhidrat", Relation:=3, FormulaText:="Available_Karbonhidrat"
SolverAdd CellRef:="Used_Yağ", Relation:=3, FormulaText:="Available_Yağ"
SolverAdd CellRef:="Used_Protein", Relation:=3, FormulaText:="Available_Protein"
SolverOk SetCell:="Min_Maliyet", MaxMinVal:=2, ValueOf:="0", ByChange:="Karar_Değişkeni"
SolverOptions MaxTime:=100, Iterations:=100, Precision:=0.000001, AssumeLinear _
:=True, SearchOption:=1, _
IntTolerance:=5, Scaling:=False, Convergence:=0.0001, AssumeNonNeg:=True
SolverOk SetCell:="Min_Maliyet", MaxMinVal:=2, ValueOf:="0", ByChange:="Karar_Değişkeni"
SolverSolve
End Sub
Kodunu yazdığımızda Compile error Sub or Function not defined hatasını veriyor nerde yanlışlık olduğunu anlamadım yardımcı olabilirmisiniz