I'm just getting started trying to track this down and looking for advise on places to look.
I have a workbook that has been in use for several years with no significant problems.
On Sheet1 I discovered that the Worksheet_SelectionChange() runs faster if I Set Calculation=Manual then set it back to Automatic when it's done.
I now want to add a new feature.
On Sheet2 I want to add over 1000 cells with formulas like this:
=SumIf(...)+SumIf(...)+SumIf(...)
The results of the 1000 cells will be used on Sheet1.
There are no dependent cells on the added cells yet.
When I added the formulas, the time for Sheet1 SelectionChange() increased over 4 seconds (which is WAY too unacceptable).
I have already tracked it down to the Calculation=Automatic statement in Sheet1 SelectionChange(). If I take out the Calculation=Manual then there is 18 seconds added because it changes 4 cells and triggers Calculation 4 times.
I have removed all the added cells except 1 with just 1 SumIf(...) in it and the time is just barely on the edge of acceptable.
I don't understand why the new SumIf(...) would be so slow.
There are already over 2000 cells with SumIf(...) in them on Sheet2 that sum the same cells that the new SumIf(...) is summing and I have not seen any slowdown before now.
Obviously there is something different about this particular SumIf(...).
The only difference is which cells this SumIf(...) is using for the other parameters.
Any ideas on what to look for and where to look?
Bookmarks