![]() |
Turning Automatic Calculation On after Workbook loads
I've got a large workbook which continually calculates cells while web
queries and other macros are executed upon document load. I can disable Automatic Calculation in Workbook_Open and the worksheet opens very quickly. After loading the workbook, I can turn automatic calculation back on, but I have users of this workbook that are probably not capable of doing this on their own. What I would like to do is find a trigger to turn automatic calculation back ON, but I'm not sure what that is. I tried using Worksheet_Change, but unless I type into the cell, it doesn't show it as changing. This is probably easy, but I haven't found anything in the help files or in this forum. Any help or ideas would be greatly appreciated. Dale. |
Turning Automatic Calculation On after Workbook loads
Here's a possibility:
in the workbook open event disable events then use ontime to turn them on again: Private Sub Workbook_Open() Application.Calculation = xlCalculationManual Application.OnTime Now + TimeValue("00:00:05"), CalcAuto '5 second delay End Sub Sub CalcAuto Application.Calculation = xlCalculationAutomatic End Sub -- Charles Chickering "A good example is twice the value of good advice." " wrote: I've got a large workbook which continually calculates cells while web queries and other macros are executed upon document load. I can disable Automatic Calculation in Workbook_Open and the worksheet opens very quickly. After loading the workbook, I can turn automatic calculation back on, but I have users of this workbook that are probably not capable of doing this on their own. What I would like to do is find a trigger to turn automatic calculation back ON, but I'm not sure what that is. I tried using Worksheet_Change, but unless I type into the cell, it doesn't show it as changing. This is probably easy, but I haven't found anything in the help files or in this forum. Any help or ideas would be greatly appreciated. Dale. |
Turning Automatic Calculation On after Workbook loads
Works great Charles.
Thank you for your idea. I've got the timer set for longer since some of our computers are slower and I don't want it to turn on calculation in the middle of loading. Thanks again. Dale. |
Turning Automatic Calculation On after Workbook loads
Thanks for the idea Dave, but we've got people that have enough
problems just opening one spreadsheet :-). In the future I might use this technique in other applications. Thanks again. Dale. |
All times are GMT +1. The time now is 05:06 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com