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: 16
Default Put Value From Solver In Memory

Is it possible to put the value from Excel's solver function into
memory rather than a cell in Excel? My intention is to use solver to
get a value and use that value in another function. However, the fist
value that I get from solver might not work with my function. That is
why I want to vary the initial value with a loop and be able to save
the value from solver in memory rather than in Excel. Below is the
code that I have. It writes the value from solver to a cell in Excel.

Sub Macro2solver()

solverreset

SolverOk SetCell:="$E$29", MaxMinVal:=3, ValueOf:="0",
ByChange:="$E$26"
SolverSolve UserFinish:=True
SolverFinish KeepFinal:=1

End Sub

 
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 an uxexpected internal error ocurred, or available memory Jorge A. Excel Worksheet Functions 1 April 16th 09 05:29 AM
XL 2007 - Out of Memory - memory leak/bug? PCLIVE Excel Discussion (Misc queries) 0 March 23rd 09 03:31 PM
Solver: An unexpected internal error occurred, or available memory was... [email protected] Excel Programming 0 April 6th 06 07:38 AM
Solver: An unexpected internal error occurred, or available memory Chad Excel Programming 3 March 9th 05 03:29 PM
VBA & Solver Memory Usage Dana DeLouis[_5_] Excel Programming 1 July 13th 03 04:58 AM


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