pivot tables and file size anomaly ( between xls and xlsm)

tomcatonnet99

Board Regular
Joined
Jan 30, 2011
Messages
73
I have two workbooks with about 8 sheets with 3 pivot tables on each sheet ( each sheet has just the one common pivotcache

I created macros for updating the pivot tables and creating additional tabulation of data extracted from the pivot tables to " archive" the entire year to date figures..

Now this is what baffles me:

Original xls has all raw data + pivot cache ( but no macro, tabular data stored) = 3MB size


New xlsm has no raw data and pivot cache only holds current months data + tabular archived data + extensive vba code and few activex objects , a small 208kb pic and file size = 15MB!!

Can anyone explain the huge difference in file size pls?
Is it the compiled code that's adding to file size? Coz the pivot caches are still common and infact all raw data deleted this time!

Thanks
 
Last edited:
save the file in its binary format xlsb that will allow macros. excel changed between 2003 to 2007 so the underlying format is now xlm, also rows went from 16,000 to over a million and columns from 256 to something much bigger
 
Upvote 0
shouldn't be an issue, 2007 onwards allows that sort of save from opening an xls, test it on a copy
 
Upvote 0

Forum statistics

Threads
1,226,797
Messages
6,193,057
Members
453,772
Latest member
aastupin

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