Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / September 2007

Tip: Looking for answers? Try searching our database.

Calculation state

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mitch - 25 Sep 2007 22:00 GMT
I need to recalculate a worksheet many times using VBA to record the input &
output values from the model in the worksheet.  I need to detect when a
recalculation is finished before initiating the next one.  I tried using
    If Application.CalculationState = 2 Then ...  and
    If Application.CalculationState = xlDone Then...
without success.  Does anyone have a suggestion for this problem.
Bill Renaud - 26 Sep 2007 00:53 GMT
I believe that Application.Calculate waits until the recalculation is
complete before passing control back to the next line of code in a VBA
routine. Call it right after you are finished putting all of the inputs in
their cells. Capture and store all input and output values (copy and
paste-special-cells) to a separate log worksheet before beginning the next
iteration.
Signature

Regards,
Bill Renaud

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.