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 - won't run Macro in Step Thru - help

Hi all,
I am having a terrible time getting Solver in Excel 2000 to run a
Macro at each iteration.

My ultimate goal is to have solver change values for a cell (or range
of cells) and call a Macro named "Unit_values_load" at each iteration,
look for a result value after Macro has run called "TotalExpValue" and
when TotalExpValue cannot be increased by changing cells, finish with
the results being the "Optimized" values for the cell (range of cells)
that could be changed.


Attached is the code :

Sub OptzBak()
SolverReset
SolverOptions Precision:=0.001, StepThru:=True, AssumeNonNeg:=True
SolverOk SetCell:=Range("TotalExpValue"), _
MaxMinVal:=1, _
ByChange:=("E103")
SolverAdd CellRef:=Sheets("Discount_value").Range("e103"), _
Relation:=1, _
FormulaText:=100
SolverSolve userFinish:=False, showRef:=("Unit_values_load")
SolverSave saveArea:=("Results!A1:A3")
End Sub

Note: I have Solver checked in references already, still didn't help.

Thanks for your help in advance..
-joe
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
Creating a Drop Down List with Step by Step Instructions for 2007 remarkable Excel Worksheet Functions 2 March 22nd 09 04:36 AM
Macro Step by Step fak119 Excel Discussion (Misc queries) 2 August 31st 06 08:11 AM
What is the step-by-step procedure for making a data list? Bobgolfs56 Excel Discussion (Misc queries) 1 April 23rd 05 02:19 PM
I need step by step instructions to create a macro for 10 imbedde. diana Excel Worksheet Functions 3 January 31st 05 01:56 AM
VBA macro step-by-step Louis[_2_] Excel Programming 3 November 15th 03 03:21 PM


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