Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Forcing VBA to wait until sheet completely calculated



Is there some way of checking whether any cells in a worksheet have not been calculated yet?

I want to proceed with my VBA code only when the sheet has been completely calculated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Forcing VBA to wait until sheet completely calculated

Hi Nirmal,

see help for application.calculationstate property.

Regards,
Ivan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Forcing VBA to wait until sheet completely calculated

On 16 May 2006 05:51:24 -0700, "Ivan Raiminius" wrote:

Hi Nirmal,

see help for application.calculationstate property.

Regards,
Ivan



Ivan

I can't find application.calculationstate. I'm using Excel 2000, is it available with that?

Nirmal
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Forcing VBA to wait until sheet completely calculated

VBA should not proceed until calculate is complete. For example:

Sub asd()
MsgBox ("start calculation")
Application.CalculateFull
MsgBox ("calculation complete")
End Sub

The second message should not be issued until the calculation is, indeed,
complete.
--
Gary''s Student


"Nirmal Singh" wrote:



Is there some way of checking whether any cells in a worksheet have not been calculated yet?

I want to proceed with my VBA code only when the sheet has been completely calculated.

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
Pivot table, IF function, calculated item versus calculated field NomadPurple Excel Discussion (Misc queries) 1 March 9th 10 03:17 PM
sendkeys(keys,wait) how do I use wait MM Excel Discussion (Misc queries) 1 February 11th 09 03:47 PM
Pivot Table Calculated Field Row - (For Balance Sheet) Mathew P Bennett Excel Discussion (Misc queries) 0 July 22nd 08 09:48 PM
copy completely same tables into one sheet Svea Excel Discussion (Misc queries) 3 August 3rd 06 07:23 AM
Wait with calculation of other sheet references after edit a cell? Maria J-son[_2_] Excel Programming 0 March 29th 06 08:27 AM


All times are GMT +1. The time now is 12:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"