Monday, March 17, 2014

Reduce Excel file size


The "UsedRange" does not correctly get reset causing a lot of bloat. You can reset this very simply with 1 line of VBA code.
ActiveSheet.UsedRange
Open the Developer tab in Excel, insert a Module, add the following macro, and run it
Public Sub ResetUsedRange()
    ActiveSheet.UsedRange
End Sub
You could also tie this macro to an Excel keyboard shortcut for quicker access using the Application.OnKey event


No comments:

Post a Comment