Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SolverParameters behaviour different in VBA and Excel?

When I define solver options in VBA i.e. step thrue:=true to get the intermediate calculation result during debugging the program, the solver solves without stop the equations. But if I stop the program in VBA Code with a breakpoint an
insert the same paramters in the Excel solver window and activate step thru, the calculation will stop after each iteration
Does anyone knows the problem and how to solve it?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default SolverParameters behaviour different in VBA and Excel?

Don't know what to write. The code below worked as expected, i.e.,
Solver paused after each iteration. Maybe, you should post the code
you are using.

Option Explicit

Sub Macro1()
SolverReset
SolverOptions MaxTime:=100, Iterations:=100, _
Precision:=0.000001, AssumeLinear:=False, _
StepThru:=True, Estimates:=1, Derivatives:=1, _
SearchOption:=1, _
IntTolerance:=5, Scaling:=False, _
Convergence:=0.0001, AssumeNonNeg:=False
SolverOk SetCell:="$B$1", MaxMinVal:=2, ValueOf:="0", _
ByChange:="$A$1"
SolverAdd _
CellRef:="$A$1", Relation:=3, FormulaText:="0"""
SolverSolve
End Sub


--
Regards,

Tushar Mehta, MS MVP -- Excel
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
When I define solver options in VBA i.e. step thrue:=true to get the intermediate calculation result during debugging the program, the solver solves without stop the equations. But if I stop the program in VBA Code with a breakpoint and
insert the same paramters in the Excel solver window and activate step thru, the calculation will stop after each iteration.
Does anyone knows the problem and how to solve it?

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
Weird Excel diagram behaviour Marcus Charts and Charting in Excel 1 March 14th 10 10:21 PM
Very annoying behaviour of Excel 2003 Jean Excel Discussion (Misc queries) 3 February 15th 10 10:08 PM
Help with odd Excel behaviour - Data Validation Colin Foster Excel Discussion (Misc queries) 0 June 26th 09 11:55 AM
strange behaviour in Excel 2003 when importing XML Marius Bancila Excel Discussion (Misc queries) 1 October 23rd 06 08:53 AM
Excel 2007 - Autofilter different behaviour Dalibor Jelinek Excel Discussion (Misc queries) 1 August 29th 06 11:59 AM


All times are GMT +1. The time now is 04:37 AM.

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"