Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Solver Macro

Hi

New doubt!

Just recorded this simple Macro:

Sub Datinfor()
'
' Datinfor Macro
' Macro recorded 14-01-2008 by dbranco
'

'
SolverOk SetCell:="$D$27", MaxMinVal:=3, ValueOf:="0", ByChange:= _
"$D$6:$D$12,$D$14:$D$19,$D$22:$D$25"
SolverSolve
End Sub


It returns me the following:

Compile error: Sub or Function not defined

Highlighting the "SolverOk" portion of the Macro.

Could someone help?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Solver Macro

Forget it everyone

Just solved the problem:

In the VBA editor:
Tools
References
Solver add-in

"Diogo" wrote:

Hi

New doubt!

Just recorded this simple Macro:

Sub Datinfor()
'
' Datinfor Macro
' Macro recorded 14-01-2008 by dbranco
'

'
SolverOk SetCell:="$D$27", MaxMinVal:=3, ValueOf:="0", ByChange:= _
"$D$6:$D$12,$D$14:$D$19,$D$22:$D$25"
SolverSolve
End Sub


It returns me the following:

Compile error: Sub or Function not defined

Highlighting the "SolverOk" portion of the Macro.

Could someone help?

Thanks

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
Is it possible to run Solver using a macro? EA405 Excel Worksheet Functions 1 May 2nd 06 08:05 PM
Solver macro TobP Excel Programming 2 July 12th 05 04:34 PM
Macro for Solver Velero Excel Programming 2 February 19th 04 01:39 PM
Using Solver within Macro Avner Mediouni Excel Programming 1 October 27th 03 12:08 AM


All times are GMT +1. The time now is 10:21 PM.

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"