S
sime
Hi listers
Is there a way to programatically check whether a workbook is waiting
to be refreshed? I am looking for something like:
Thisworkbook.NeedsCalculating
I am forcing a calculation of a worksheet with the following code:
***code start***
With ThisWorkbook.Worksheets("MyReport")
.EnableCalculation = True
ThisWorkbook.RefreshAll
.EnableCalculation = False
End With
***code end***
....however, if I click the sheet while the calculation is occuring, the
calculation cancels and the code continues to run without having
refreshed properly. How can I check if the calculation has completed?
Hope someone can help
Regards
Simon Hobbs
Is there a way to programatically check whether a workbook is waiting
to be refreshed? I am looking for something like:
Thisworkbook.NeedsCalculating
I am forcing a calculation of a worksheet with the following code:
***code start***
With ThisWorkbook.Worksheets("MyReport")
.EnableCalculation = True
ThisWorkbook.RefreshAll
.EnableCalculation = False
End With
***code end***
....however, if I click the sheet while the calculation is occuring, the
calculation cancels and the code continues to run without having
refreshed properly. How can I check if the calculation has completed?
Hope someone can help
Regards
Simon Hobbs