yichuansancun
Board Regular
- Joined
- Feb 7, 2011
- Messages
- 123
Hi All,
I tried to record a macro for Solver in Excel. After recording the macro, I
ran it and the message was that the "SolverOK" which is the first word in the
body is not a defined Sub or function.
Sub Calculate()
'
' Calculate Macro
'
'
SolverOk SetCell:="$N$7", MaxMinVal:=2, ValueOf:="0", ByChange:="$N$3"
SolverSolve
End Sub
How to solve this problem?
I am using excel 2007
Thanks,
Perri
I tried to record a macro for Solver in Excel. After recording the macro, I
ran it and the message was that the "SolverOK" which is the first word in the
body is not a defined Sub or function.
Sub Calculate()
'
' Calculate Macro
'
'
SolverOk SetCell:="$N$7", MaxMinVal:=2, ValueOf:="0", ByChange:="$N$3"
SolverSolve
End Sub
How to solve this problem?
I am using excel 2007
Thanks,
Perri