LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default VBA CODE SOLVER TO RETURN VALUE

On May 26, 5:44 pm, "Jon Peltier"
wrote:
Your line was missing some quotes:
SolverOk SetCell:="$DV$4", MaxMinVal:="2", ValueOf:="1",
ByChange:="$DU$4"
Off the top of my head, I don't know whether they are needed around the
numerical values.

I've had a little experience with Crystal Ball and with another package,
@Risk ("at risk") by Palisade. My experience is that the Palisade product
interfaces more smoothly with Excel. You should at least look at both.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. -http://PeltierTech.com
_______

"Jasper" wrote in message

...

"....The model solution value is your SetCell. So you have that defined.
The
ByChange value is supposed to be the range of decision variables. If
you are only defining a single cell as a single decision variable,
there's not much of a problem..."


There's the crux, the code works fine, though for some reason the result
will not show in the designated place after the macro is done. Though I
ran
out of things that could be wrong about this code.


SolverReset
SolverOk SetCell:="$DV$4, MaxMinVal:=2, ValueOf:=1", ByChange:="$DU$4"
SolverSolve UserFinish:=True
SolverFinish KeepFinal:=1


Thanks so far, I'm looking into Chrystal Ball. Gr.


Jasper


Jasper,

I agree with Jon. Crystal Ball does better marketing, but @Risk is a
better product. And Palisade just released version 5 of their
decision tools suite. So you can try that out simultaneously while
solving your problem.

SteveM
 
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 bug - Won't return Integer GeoJack Excel Discussion (Misc queries) 3 December 16th 06 09:15 PM
Solver GUI works fine, but the VBA macro won't return any results Ben Anderson Excel Programming 3 June 24th 05 02:48 PM
Help with Solver Code Paul Excel Programming 1 May 14th 05 05:43 AM
Why will solver only return the original adjustable cell values? Del Excel Worksheet Functions 0 March 3rd 05 12:25 AM
VBA Code for Solver David Excel Programming 1 October 21st 04 07:33 PM


All times are GMT +1. The time now is 01:31 AM.

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"