Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Solver Macro

Hi Everyone,

I am trying to write a macro for the solver function with the following
parameters:

Set Target Cell: = AW20
Value of := 490,000
By Changing:= G18:AW18

Subject to:
D33:Z33 = 0
D38:Z38 =1.18
E18:AW18 = 440,000
E39:Z39 = 5,000
E40:Z40 = 50,000

Can anyone assist me with the codes for this.

Also is it possible to use range names as oppose to absolute values for some
of the contraints within the macro?

Thanks in advance for helping.

Best regards

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Solver Macro

Download the file he
http://download.microsoft.com/downlo...s/solverex.exe
Use the macro New_Employee_Schedule() as a guide. It has constraints.
Yes, you can use a range-name in lieu of cell addresses.
Don't forget to set a reference. See http://support.microsoft.com/kb/843304
for more info.

Hth,
Merjet


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default Solver Macro

Turn on the macro recorder, run this analysis manually, then fix up the
code.

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


"Lacty" wrote in message
...
Hi Everyone,

I am trying to write a macro for the solver function with the following
parameters:

Set Target Cell: = AW20
Value of := 490,000
By Changing:= G18:AW18

Subject to:
D33:Z33 = 0
D38:Z38 =1.18
E18:AW18 = 440,000
E39:Z39 = 5,000
E40:Z40 = 50,000

Can anyone assist me with the codes for this.

Also is it possible to use range names as oppose to absolute values for
some
of the contraints within the macro?

Thanks in advance for helping.

Best regards



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 Macro Diogo Excel Programming 1 January 14th 08 12:04 PM
Solver Macro [email protected] Excel Discussion (Misc queries) 2 August 24th 07 08:54 PM
Is it possible to run Solver using a macro? EA405 Excel Worksheet Functions 1 May 2nd 06 08:05 PM
SOLVER macro emilija Excel Programming 1 April 22nd 05 02:29 PM
Solver Macro Michael Excel Programming 2 May 21st 04 03:13 PM


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