应该可以阿,先打开MACRO录制,再SOLVER,最后STOP MACRO录制。
SOLVER就在录制MACRO里面了。
这是我试的简单公式,不是你的求利润最大化问题。
Sub Macro1()
SolverOk SetCell:="$A$5", MaxMinVal:=3, ValueOf:="0", ByChange:="$A$1"
SolverSolve
End Sub
应该可以阿,先打开MACRO录制,再SOLVER,最后STOP MACRO录制。
SOLVER就在录制MACRO里面了。
这是我试的简单公式,不是你的求利润最大化问题。
Sub Macro1()
SolverOk SetCell:="$A$5", MaxMinVal:=3, ValueOf:="0", ByChange:="$A$1"
SolverSolve
End Sub
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy