8
2
Excel compresses its files using Zip-Deflate and stores it. However, the compression level is far from the best. To reduce the size and send it across I have to unzip and re-zip it manually everytime. Is there a way to change the compression level setting in excel so that it compresses and stores the file using best method possible?
2Perhaps just save is as a binary file (XLSB) instead? – Ƭᴇcʜιᴇ007 – 2014-04-17T20:10:09.593
@Techie How converting to binary helps? – EliadTech – 2014-04-17T20:41:13.657
The file size will be much smaller. Try it and let us know how it goes. – Ƭᴇcʜιᴇ007 – 2014-04-17T21:01:15.783
Saving to binary doesn't help significantly. Not nearly as significant as unzip and rezip. Perhaps there is an option for default compression level somewhere? – OrangeRind – 2014-04-28T05:41:44.217
What version of excel and windows are you using? How are you zipping it with excel (filetype and whatnot)? – Raystafarian – 2014-05-08T18:05:52.633
Be aware that the order of files in the compressed stream is relevant. Just unpacking and repacking might result in unreadable files. – Daniel B – 2014-05-08T20:03:14.917
Why do you need to zip it, how big is it? – Toby Allen – 2014-05-08T21:08:55.787
Too bad there's no
WorkbookBeforeOpen
event on the Excel.Application object, or you could write a C# COM addin to 7-zip the workbook on save and un-7zip it on open... – allquixotic – 2014-05-08T21:26:02.743@Raystafarian - Win7/8 Excel2010/13 and 7-zip. I'm not zipping it with excel - the XLSX format is a zip format – OrangeRind – 2014-05-09T15:20:17.453
@TobyAllen - Default xlsx file size goes above 80MB. – OrangeRind – 2014-05-09T15:20:51.787
@allquixotic - I agree, something of that sort could have helped! – OrangeRind – 2014-05-09T15:21:14.023
By the way, AFAIK, excel file size increases drastically if you have too many worksheets. So, if possible, try to use lesser worksheets if you have too many of them. – tumchaaditya – 2014-05-09T19:05:19.073
I don't think you can achieve what you want... The work around you have is the only way to achieve this. http://datapigtechnologies.com/blog/index.php/how-to-compress-xlsx-files-to-the-smallest-possible-size/comment-page-1/ ... This may also help http://stackoverflow.com/questions/17527917/how-to-reduce-a-huge-excel-file
– Dave – 2014-05-12T08:27:47.980