Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default making a UDF that runs solver

I'm working on a spreadsheet that needs to run solver for all the cells in a
column. I just can't do it one by one because I'll be using the spreadsheet
under different conditions. Can anyone tell my how to program a UDF that
will run solver so I can drag it down the column? Thanks!

url:http://www.ureader.com/gp/1042-1.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 762
Default making a UDF that runs solver

maria bernal -

I doubt that you can use a User Defined Function to run Solver.

A UDF can only return a value to the cell where it resides. When Solver
runs, Solver changes values in other cells.

So, I think you will have to use a subroutine instead of a UDF.

Examples and tutorials are available if you search Google for "excel vba
solver" (without the quotes).

- Mike Middleton
http://www.DecisionToolworks.com
Decision Analysis Add-ins for Excel



"maria bernal" wrote in message
.. .
I'm working on a spreadsheet that needs to run solver for all the cells in
a
column. I just can't do it one by one because I'll be using the
spreadsheet
under different conditions. Can anyone tell my how to program a UDF that
will run solver so I can drag it down the column? Thanks!

url:http://www.ureader.com/gp/1042-1.aspx



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 Function - Making it Automatic JamesB Excel Worksheet Functions 9 April 3rd 23 01:21 PM
One macro runs then it auto runs another macro PG Excel Discussion (Misc queries) 2 September 1st 06 09:30 PM
Making solver solve for different set variables and listing result Michael Bev Excel Discussion (Misc queries) 0 April 13th 06 12:22 PM
REPOST: Solver only runs once HydroGuy Excel Discussion (Misc queries) 0 February 15th 06 08:09 PM
Solver only runs once HydroGuy Excel Discussion (Misc queries) 0 January 22nd 06 06:02 PM


All times are GMT +1. The time now is 05:12 PM.

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"