Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro Problems
Hello,
I want to automate a 'solve' procedure by using a macro button. The solve works when manually done. But when I use a button, I get the following compiler error. Sub or function not defined. Sub solve() ' ' solve Macro ' Macro recorded 25/10/2005 by IT Services ' ' solverok SetCell:="$E$9", MaxMinVal:=2, ValueOf:="0", ByChange:="$D$2:$D$7" SolverSolve End Sub solverok is the highlighted part, that it refers to. regards |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro Problems
You need to go into Tools, References in the VBE and set a reference to
SOLVER. -- Jim "unique" wrote in message ... | Hello, | | I want to automate a 'solve' procedure by using a macro button. The solve | works when manually done. But when I use a button, I get the following | compiler error. | | Sub or function not defined. | | Sub solve() | ' | ' solve Macro | ' Macro recorded 25/10/2005 by IT Services | ' | | ' | solverok SetCell:="$E$9", MaxMinVal:=2, ValueOf:="0", | ByChange:="$D$2:$D$7" | SolverSolve | End Sub | | | | solverok is the highlighted part, that it refers to. | | regards | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro problems | Excel Discussion (Misc queries) | |||
Macro Problems | Excel Discussion (Misc queries) | |||
Macro Problems | Excel Discussion (Misc queries) | |||
Macro Problems | Excel Programming | |||
Macro problems in XP | Excel Programming |