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: 2
Default VBA Excel Solver ValueOf: Reference Problem

Hi,

I have a problem regarding the VBA Solver Code. The Code looks like
this:

SolverOk SetCell:=[DCRAve], MaxMinVal:=3, ValueOf:=[MO_DCRMin].Value,
ByChange:=[MO1DCR]
SolverSolve

The Solver works fine if I put a Value (ex. 0.4) in ValueOf but does
not work with a reference to a Spreadsheet Cell (neither
Range("B12").Value, Range("B12"), nor [MO_DCRMin]

Has anybody an idea how to solve this problem??

Also, I do not want the Solver Dialogbox to pop up and ask me to accept
the stuff. It shall be accept in all of the cases.

How to do that??

Thank You very much for helping me out,

Karl

 
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
Excel Solver / Math Problem denton Excel Discussion (Misc queries) 3 March 29th 07 03:04 PM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
Solver Reference in Hidden Personal.XLS Crashes Excel 2003 [email protected] Excel Programming 1 July 12th 04 11:48 AM
Solver reference problem Martien Janssen[_2_] Excel Programming 2 April 9th 04 03:06 PM
Solver and Excel programming problem AAB Excel Programming 0 February 3rd 04 12:57 AM


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