Reducing Excel Macro-Enabled File Size - Hack discovered

Oncemessages

Spammer
Joined
Dec 1, 2019
Messages
4
Office Version
  1. 2011
Platform
  1. Windows
I discovered this hack to reduce excel file size. I have made many code changes (I am over 60k lines of code), and every time I make a change, even if data is not added, and in fact sheets are removed or userforms removed, the excel file keeps creeping up in size. As long as there are some VBA changes, the file size will increase.

However, there is a hack that will reduce it to the "real" size. Simply open the workbook, open up a userform without making changes and then exit. Excel will prompt you to save, and when you do so, the file size decreases.

Thank everyone ! - Apkafe
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,225,399
Messages
6,184,747
Members
453,254
Latest member
topeb

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