Which is to say it's only one worksheet that causes the problem and not all.
I have a large workbook with 20 inter-dependent worksheets. This workbook is updated daily with an 8mb text file from the ERP system and calculates all manner of things
Within this workbook is a single worksheet that has roughly one million cells - 650,000 in a data table that includes a handful of calculated columns and then a couple of pivot tables that pull from the data table. The data is not formatted as a table.
In an attempt to optimize this spreadsheet, one of the areas I examined was the active range or active cells - using Control-End, and the size is enormous. There's well over 2000 columns with rows right to the bottom - more than 2 billion cells. There's far less than 1% of the active area that has data in it. In trying to reset the size by adjusting the column and/or row width, the macro returns a "Excel cannot complete the task with the available resources" or something to that effect. This is on a multi-core, 64-bit OS with 64-bit Excel and 16gb of ram. If I select a single row or single column, Excel hangs and doesn't come back no matter how long I leave it. While it's hanging, there's no processor or memory overload reported back in the task manager. Perhaps 700,000 k and very low CPU consumption. This is with calculations set to manual, iterations 0, no updating. Selecting a column beyond the end of the range works without issue.
I need to fix this house of cards. The data contained in the pivot tables is accessed by numerous other worksheets so it's a last resort to blow it away and start over, though I'm not sure how I'd manage that even, unless I can recreate the various tables by hand, re-write all the dependent formulas and delete the entire worksheet (without it hanging of course).
Because I can select a full column outside the active cell range, I assume that if I could stop whatever process happens when I select a column within the range, that I could successfully resize the active area and be done with it. Perhaps there's a VBA script to suspend this activity? Certainly open to any and all suggestions.
Bookmarks