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

I am using VBA script to run the standard excel solver
automatically every minute or so in an excel spreadsheet
and it runs reasonably well however occasionally (Once
every 12 to 24 hrs) I receive a dialog box indicating "The
maximum time limit was reached; continue anyway?". Is
there VB code I can use to automatically close this
dialogue if it appears box by choosing 'stop'
or 'continue' or will a user have to manually intervene?
For example I use "SolverSolve UserFinish:=True"
and "SolverFinish" in my current code to prevent user
intervention. I have tried extending the maximum time in
the options and that does not appear to make a large
difference.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Excel solver time limit

David -

The SolverSolve function returns an integer value indicating what happened.
I think 0,1,2 indicate various kinds of success, but I don't have the list
handy. Maybe you could check the function result like this:

If SolverSolve(UserFinish:=True) 2 Then ... Else ...

And I don't know if this will avoid the dialog box.

- Mike Middleton, www.usfca.edu/~middleton

+++++++++++++++++++++++++++++++++

I am using VBA script to run the standard excel solver
automatically every minute or so in an excel spreadsheet
and it runs reasonably well however occasionally (Once
every 12 to 24 hrs) I receive a dialog box indicating "The
maximum time limit was reached; continue anyway?". Is
there VB code I can use to automatically close this
dialogue if it appears box by choosing 'stop'
or 'continue' or will a user have to manually intervene?
For example I use "SolverSolve UserFinish:=True"
and "SolverFinish" in my current code to prevent user
intervention. I have tried extending the maximum time in
the options and that does not appear to make a large
difference.


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
Adjustable Cells (Changing Cells) Limit - Solver Marcio Excel Discussion (Misc queries) 0 April 7th 08 04:41 PM
How to time-limit an Excel file installation Colin Hayes Excel Worksheet Functions 26 January 6th 08 04:20 AM
Excel Solver (Maximum Limit of no. of variables & constraints) Ritesh Excel Discussion (Misc queries) 1 August 8th 06 05:54 PM
How to use solver to schedule part time and full time workforce? The Ooz Excel Discussion (Misc queries) 0 August 18th 05 06:53 AM
Excel Solver: How do I limit the contents of a cell to 1=True or 0 Brian Patrick Gilbert New Users to Excel 0 February 8th 05 03:29 PM


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