LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Solver Macro in Excel 2007

I recorded a Macro in Excel 2007 that uses the Solver, so I have macros
enabled and security set to low, and I have installed the Solver Add-In, but
when I run the recorded Macro, an Error Message comes up:

Compile Error:
Sub or Function not defined.

Here is the code, but I can't see how it could have a problem if Excel
recorded it.

Sub FindEquation()
'
' FindEquation Macro
'

'
SolverOk SetCell:="$K$4", MaxMinVal:=2, ValueOf:="0", ByChange:= _
"$G$4,$H$4,$I$4"
SolverSolve
SolverOk SetCell:="$L$4", MaxMinVal:=2, ValueOf:="0", ByChange:= _
"$G$4,$H$4,$I$4"
SolverSolve
SolverOk SetCell:="$K$4", MaxMinVal:=2, ValueOf:="0", ByChange:= _
"$G$4,$H$4,$I$4"
SolverSolve
End Sub

Any suggestions?
Thanks
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 & Solver Don White Excel Discussion (Misc queries) 2 January 29th 09 02:19 PM
Using Solver with Excel 2007 VBA Bandicoot Excel Programming 1 April 23rd 07 11:13 PM
Solver in Excel 2007 datawired Excel Programming 3 November 20th 06 10:27 PM
Where is Solver in Excel 2007? Javierh Excel Discussion (Misc queries) 1 August 13th 06 11:04 PM
Solver in excel 2007 Ben Enfield Excel Discussion (Misc queries) 2 May 29th 06 09:57 PM


All times are GMT +1. The time now is 08:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"