Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default 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
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
Macro problems Father John Excel Discussion (Misc queries) 3 April 20th 10 11:24 PM
Macro Problems laxnation87 Excel Discussion (Misc queries) 1 August 7th 07 05:41 PM
Macro Problems gillj Excel Discussion (Misc queries) 1 May 6th 06 11:51 AM
Macro Problems hw Excel Programming 5 May 26th 05 03:57 PM
Macro problems in XP Eva Shanley[_2_] Excel Programming 1 September 21st 04 05:37 PM


All times are GMT +1. The time now is 03:54 AM.

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

About Us

"It's about Microsoft Excel"