Excel file slow to close

dmacmillan

Board Regular
Joined
Apr 5, 2004
Messages
125
Hello All,

A large .xlb file (25Mb) takes 90 seconds to close.

Ran a few tests with negligible impact.
Removed conditional formatting, converted table to values, and checked used ranges.

Opens slowly, but much quicker the closing. Calculation speed slow, but not unbearable (say 10 seconds for a rebuild).

Should I insert a macro to prevent calculation in close?

I’d welcome any other suggestions.

Many thanks,
David
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Should I insert a macro to prevent calculation in close?
It's a very risky thing to do. Performing calculations before closing or saving is a safeguard against accidental exit and thus saving your precious work/effort.

Among many things that slow down calculations are -

# complicated conditional formats - I had one that checked 90,000 rows before formatting. Any change would trigger recalculating that...
# Too much of lookups - This substantially slow downs system
# Too many interdependent calculations

I would not tell you to remove all or convert table to values because that shall defeat the purpose of using excel. But you need to prioritize what is needed.

for eg -
I let go the above mentioned CF once the purpose was over and saved the rule in a text file, just in case I would need that in future (that I know would be required)
But my file has more that 27,000 lookups running because I know I need them at all time...

Hope it helps you in some useful way...
 
Upvote 0

Forum statistics

Threads
1,215,130
Messages
6,123,220
Members
449,091
Latest member
jeremy_bp001

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top