Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Using solver in macros - Help

Anyone give us an idea about this one?. When I run this
basic macro, the settings of SolverOK do NOT get inputted
into the solver addin but the constraints do. (i.e.
SolverAdd works, SolverOK does not). I have tried using
R1C1 notation as suggested by help queries and same thing
happens (or doesn't happen!). If I manually record, VBA
recognises that I am using SolverOK and records my
actions, but when I play back, the macro totally ignores
the solverOK line. Any suggestions? Thanks Toby

Sub SolveMacro()
SolverReset
SolverAdd CellRef:="$B$1", Relation:=2,
FormulaText:="0.1"
SolverOK SetCell:="$A$1", MaxMinVal:=1, ValueOf:="0",
ByChange:="$C$1:$C$4"
SolverSolve True
End Sub
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
solver in macros Gabru Excel Discussion (Misc queries) 0 September 1st 06 04:05 PM
Macros involving SOLVER... function Pixies Excel Discussion (Misc queries) 5 April 20th 06 05:07 PM
webquery and solver macros icestationzbra Excel Discussion (Misc queries) 2 February 23rd 06 06:47 PM
Solver does not work from Macros mjd918 Setting up and Configuration of Excel 1 January 6th 06 04:15 PM
Solver, macros Excel scaroca Excel Worksheet Functions 2 September 6th 05 01:34 AM


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