Drofidnas
Board Regular
- Joined
- Jun 30, 2004
- Messages
- 126
Not as easy as it sounds.
I have a large workbook with 60+ sheets.
One sheet pulls info from the others and displays a chart (updating the chart with Worksheet_Change(ByVal Target As Range)) as the data point changes.
I also have a status page which checks for errors and refreshes the result with Worksheet_Activate() every time the sheet is activated.
So there is a lot going on.
I originally had pages of formulas on every sheet and gradually have turned all of these into VBA making the whole workbook operate more quickly. I have macros which zip through every sheet copying data and moving it and all sorts of automations and these move like lightning! But whenever I use the Worksheet_Change(ByVal Target As Range) or _Activate() sheets I get Calculating: x% and it takes about 6 seconds to clear each time.
Weirdly, if I click the mouse, the calculation stops and the result is shown - so the information is there, it is just being held up by this spurious calculating which doesn't appear necessary.
Even with Calculation set to Manual I still get this. What is being calculated?
I have
Application.DisplayAlerts = False
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
at the start of every macro and the opposite at the end.
Is there something else I can do? Even simulating the mouse click!
Thanks for any help.
Chris
I have a large workbook with 60+ sheets.
One sheet pulls info from the others and displays a chart (updating the chart with Worksheet_Change(ByVal Target As Range)) as the data point changes.
I also have a status page which checks for errors and refreshes the result with Worksheet_Activate() every time the sheet is activated.
So there is a lot going on.
I originally had pages of formulas on every sheet and gradually have turned all of these into VBA making the whole workbook operate more quickly. I have macros which zip through every sheet copying data and moving it and all sorts of automations and these move like lightning! But whenever I use the Worksheet_Change(ByVal Target As Range) or _Activate() sheets I get Calculating: x% and it takes about 6 seconds to clear each time.
Weirdly, if I click the mouse, the calculation stops and the result is shown - so the information is there, it is just being held up by this spurious calculating which doesn't appear necessary.
Even with Calculation set to Manual I still get this. What is being calculated?
I have
Application.DisplayAlerts = False
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
at the start of every macro and the opposite at the end.
Is there something else I can do? Even simulating the mouse click!
Thanks for any help.
Chris
Last edited: