PC Review


Reply
Thread Tools Rate Thread

Calculation state

 
 
=?Utf-8?B?TWl0Y2g=?=
Guest
Posts: n/a
 
      25th Sep 2007
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.
 
Reply With Quote
 
 
 
 
Bill Renaud
Guest
Posts: n/a
 
      26th Sep 2007
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.
--
Regards,
Bill Renaud



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Overriding the calculation state Alan Moseley Microsoft Excel Programming 6 29th Jan 2009 04:53 PM
State table lookup - How can I display full state name only on data entry? mthornblad@gmail.com Microsoft Access Forms 1 30th Aug 2007 05:29 PM
how do I create a form that selects a state & then only show that state's cities bayouplayer Microsoft Access Form Coding 1 28th Apr 2006 03:06 AM
Asus notebook resumes from standby state to power on state by itself tinke Windows XP General 1 5th Feb 2005 01:17 AM
Detecting Calculation State Chris Gorham Microsoft Excel Programming 3 15th Jul 2003 11:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:48 PM.