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: 5
Default Macro Code Problem

Hello,

I am trying to automate the 'solver' function so that we dont have to go
through the menu to get the solver answer.

The solver works and excel finds feasible solutions. But when attaching a
macro, to this the following compiler error appears.



Sub Macro1()
'
' Macro1 Macro
' Macro recorded 28/10/2005 by IT Services
'

'
SolverOk SetCell:="$E$9", MaxMinVal:=2, ValueOf:="0",
ByChange:="$D$2:$D$7"
SolverSolve
End Sub


with the 'SolverOk' code highlighted in blue. And then the Sub Macro1()
code, highlighted in yellow.

What the problem with this macro.

regards




 
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
read macro code by vb code Francesco Geri Excel Programming 2 October 7th 05 10:24 AM
do anybody have a sample code for executing excel macro from vb code?<eom B Deepak Excel Programming 2 September 30th 05 09:59 AM
VBA Code Problem Shawn Excel Programming 9 July 19th 05 04:48 AM
code problem scrabtree[_2_] Excel Programming 0 September 16th 04 03:48 PM
Application.run Macro Code Problem Todd Huttenstine Excel Programming 1 August 21st 04 08:23 PM


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