ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Detecting when a process ends (https://www.excelbanter.com/excel-programming/444911-detecting-when-process-ends.html)

kittronald

Detecting when a process ends
 
Does Excel provide a way to detect when a selection of formulas have
completed calculation or when a file save has completed ?

I want to run a macro, save the file, run another macro and save the
file again.

However, before each save, all formulas must have completed calculation.

Is this possible ?


- Ronald K.



Don Guillett[_2_]

Detecting when a process ends
 
On Aug 30, 3:06*pm, "kittronald" wrote:
* * Does Excel provide a way to detect when a selection of formulas have
completed calculation or when a file save has completed ?

* * I want to run a macro, save the file, run another macro and save the
file again.

* * However, before each save, all formulas must have completed calculation.

* * Is this possible ?

- Ronald K.


sub runandsave()
macro1
activeworkbook.save
macro2
activeworkbook.save
end sub

Greg Glynn

Detecting when a process ends
 
The macro function
Calculate
forces a recalculation of all your fields. So you can build that in
to your sequence before you do your saves.

kittronald

Detecting when a process ends
 
Don and Greg,

Thanks guys.

After setting up a combination macro, I see that the calculations
complete before the file save macro runs.



- Ronald K.




All times are GMT +1. The time now is 01:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com