I have been tasked with updating a macro in Excel 2007 that needs to refresh over 150 pivot tables, whose data source is approx. 65000 rows x 30 columns. File format is .xlsb. My problem is that a typical "RefreshAll" function uses up too much memory and crashes Excel. I tried looping through the pivot tables in each worksheet in the workbook and updating the data source (on a separate occasion I also tried updating each pivot cache in the loop), but that also crashes Excel. Previously, the "RefreshAll" function worked, but before the quantity of pivot tables grew exponentially.
While this workbook will be re-done in the near future to fix the fact it's horribly inefficient, I need a temporary band-aid fix but cannot seem to be able to mass-refresh these pivot tables without Excel giving up about 2/3rds of the way through the pivot tables.
What I'm hoping for: does anyone have any suggestions for a strategy to approach to make this work? I have never worked with so large a set of pivot tables before that Excel can't handle the memory load.
Thanks,
Stefan F.
Winnipeg, MB, CAN
While this workbook will be re-done in the near future to fix the fact it's horribly inefficient, I need a temporary band-aid fix but cannot seem to be able to mass-refresh these pivot tables without Excel giving up about 2/3rds of the way through the pivot tables.
What I'm hoping for: does anyone have any suggestions for a strategy to approach to make this work? I have never worked with so large a set of pivot tables before that Excel can't handle the memory load.
Thanks,
Stefan F.
Winnipeg, MB, CAN