Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Solver formula "Equal to Value of:" cell reference

Hi !

Is there a way I can use Solver in a vb formula so that the "Value of" value
equals a cell reference?

Thank you.

--
Orlando Vazquez
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Solver formula "Equal to Value of:" cell reference

For example, the ValueOf:= below should reference a cell on the spreadsheet
that contains the value instead of having to type in the value.

Sub solvit()
SolverReset
SolverOk SetCell:=("J16"), MaxMinVal:=3, ValueOf:=0.0125, ByChange:=("N16")
End Sub

--
Orlando Vazquez


"ORLANDO VAZQUEZ" wrote:

Hi !

Is there a way I can use Solver in a vb formula so that the "Value of" value
equals a cell reference?

Thank you.

--
Orlando Vazquez

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default Solver formula "Equal to Value of:" cell reference

An untested suggestion

Sub solvit()
SolverReset
val =Range("N16)
SolverOk SetCell:=("J16"), MaxMinVal:=3, ValueOf:=val, ByChange:=("N16")
End Sub

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"ORLANDO VAZQUEZ" wrote in
message ...
For example, the ValueOf:= below should reference a cell on the
spreadsheet
that contains the value instead of having to type in the value.

Sub solvit()
SolverReset
SolverOk SetCell:=("J16"), MaxMinVal:=3, ValueOf:=0.0125,
ByChange:=("N16")
End Sub

--
Orlando Vazquez


"ORLANDO VAZQUEZ" wrote:

Hi !

Is there a way I can use Solver in a vb formula so that the "Value of"
value
equals a cell reference?

Thank you.

--
Orlando Vazquez



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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Formula 'mis' calculate when reference cell contains a "0" Rachel Excel Discussion (Misc queries) 1 December 12th 06 07:43 PM
HELP! How to put an IF formula with "starts with" instead of bigger than or equal to debbedeb Excel Worksheet Functions 1 November 23rd 06 03:08 PM
Excel solver should allow "equal to" value to be a selected cell. Brantlee Excel Worksheet Functions 1 May 19th 06 07:49 PM
sort data rows "greater than or equal" criteria in another cell HV man Excel Worksheet Functions 0 March 26th 06 11:50 PM


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