PC Review


Reply
Thread Tools Rate Thread

Application.CalculateFull

 
 
kathy.aubin@gmail.com
Guest
Posts: n/a
 
      17th Jan 2007
Hi,

I want to use Application.CalculateFull to calculate all the formula on
my spreadsheet. I have some data pulling from Bloomberg so it may takes
some time for the calculations to be completed. Is there a way to know
when the calculations are done? Cause once they are, I want to delete
the row where the data was not pulled from Bloomberg and have #N/A in
the cell.

Thank you,

Kathy

 
Reply With Quote
 
 
 
 
Charles Williams
Guest
Posts: n/a
 
      17th Jan 2007
If Application.CalculationState = xlDone Then


Charles
______________________
Decision Models
FastExcel 2.3 now available
Name Manager 4.0 now available
www.DecisionModels.com

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> I want to use Application.CalculateFull to calculate all the formula on
> my spreadsheet. I have some data pulling from Bloomberg so it may takes
> some time for the calculations to be completed. Is there a way to know
> when the calculations are done? Cause once they are, I want to delete
> the row where the data was not pulled from Bloomberg and have #N/A in
> the cell.
>
> Thank you,
>
> Kathy
>



 
Reply With Quote
 
kathy.aubin@gmail.com
Guest
Posts: n/a
 
      17th Jan 2007
Great! So I can do :

If Application.CalculationState = xlDone then
..........

but then, what can I do when the State is not xlDone? I don't want the
macro to continue running until it's done. Is there a way yo do that?

Thanks

 
Reply With Quote
 
Charles Williams
Guest
Posts: n/a
 
      17th Jan 2007
If you use application.calculatefull then the next line in your VBA will not
execute until application.calculatefull has finished, so usually you dont
need to check Calculationstate.

If you do need to check it then do something like this
'
' calculation calls here
'
Do
'
' wait 2 seconds
'
Application.Wait(Now + TimeValue("0:00:02"))
If Application.CalculationState = xlDone then exit do
Loop


Charles
______________________
Decision Models
FastExcel 2.3 now available
Name Manager 4.0 now available
www.DecisionModels.com

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Great! So I can do :
>
> If Application.CalculationState = xlDone then
> ..........
>
> but then, what can I do when the State is not xlDone? I don't want the
> macro to continue running until it's done. Is there a way yo do that?
>
> Thanks
>



 
Reply With Quote
 
kathy.aubin@gmail.com
Guest
Posts: n/a
 
      17th Jan 2007
Thanks Charles

 
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
UDF returns #NUM! with F9 or Application.CalculateFull if sheet notactive Greg Microsoft Excel Programming 11 8th Apr 2009 02:28 PM
CalculateFullRebuild vs CalculateFull Anthony Microsoft Excel Discussion 3 18th Mar 2009 12:41 PM
Re: Need for CalculateFull Frank Kabel Microsoft Excel Misc 3 28th May 2004 04:16 PM
Re: Need for CALCULATEFULL Jan Karel Pieterse Microsoft Excel Crashes 0 28th May 2004 03:18 PM
Application.Calculatefull function Charlie Woll Microsoft Excel Programming 3 20th Jul 2003 07:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:43 AM.