LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Pixies
 
Posts: n/a
Default Macros involving SOLVER... function


My intial problem was to solve a simultaneous equation using excel.

You can do this using Tools Solver...

Now I wanted to create a macro so everytime I change my constraints< I
can run the macro which would in turn run the commands in Solver...

I did this BUT when I actually ran the macro again I got this error:

Compile Error:
Sub or Function not defined.

Macro:
Sub last()
'
' last Macro
' Macro recorded 19.04.2006 by Lewis Holland
'

'
SolverOk MaxMinVal:=1, ValueOf:="0", ByChange:="$D$9:$D$10"
SolverAdd CellRef:="$A$9:$A$10", Relation:=2,
FormulaText:="$B$9:$B$10"
SolverOk MaxMinVal:=1, ValueOf:="0", ByChange:="$D$9:$D$10"
SolverSolve
End Sub

Can anyone help solve this?
Can you record a macro which actually uses this Solver.. function?


--
Pixies
------------------------------------------------------------------------
Pixies's Profile: http://www.excelforum.com/member.php...o&userid=33642
View this thread: http://www.excelforum.com/showthread...hreadid=534142

 
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
Sub list and rum macros in the function T-shugo New Users to Excel 1 March 21st 06 08:46 AM
Solver does not work from Macros mjd918 Setting up and Configuration of Excel 1 January 6th 06 04:15 PM
Solver problem where 'IF Function' is bad David Adamson Excel Discussion (Misc queries) 5 September 23rd 05 06:10 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 02:54 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"