How to Improve Excel Performance with a Large Personal Macro Workbook
Question details
Excel experiences significant lag when copying and pasting or running macros due to a bloated Personal Macro Workbook.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Using custom macros stored in Personal.xlsb that are globally accessible across multiple workbooks.
- Observed behavior
- Excel becomes slow and unresponsive during routine operations like copying, pasting, or executing VBA scripts because the Personal.xlsb file has grown too large.
Before modifying your Personal Macro Workbook, locate the Personal.xlsb file in your XLSTART folder and make a backup copy to prevent accidental loss of important macro scripts.
Optimize and Reduce the Size of Personal.xlsb
Improve performance by separating rarely used macros, forms, and modules into dedicated add-ins rather than storing everything in the main Personal Macro Workbook.
Keeping all your macros in Personal.xlsb causes Excel to load massive amounts of code into memory every time you open any workbook. Moving specialized macros to individual add-ins reduces this memory burden.
Launch Microsoft Excel and press 'ALT + F11' to open the Visual Basic for Applications (VBA) Editor.
In the Project Explorer pane on the left, expand 'VBAProject (PERSONAL.XLSB)'.
Right-click on any module or user form that you rarely use, select 'Export File...', and save it to a designated folder on your computer.
Right-click the exported module again and select 'Remove [Module Name]'. When prompted to export, click 'No' since you have already saved it.
Open a new blank workbook, press 'ALT + F11', import the exported modules into this new workbook, and save it as an Excel Add-in (.xlam). Load this add-in only when those specific macros are needed.

Optimize Macro VBA Code Efficiency
Modify your VBA scripts to avoid resource-heavy actions like Selecting, Copying, and Pasting, and temporarily disable background processes during macro execution.
Experience Faster Spreadsheet Performance with WPS Office
If Microsoft Excel continues to lag or freeze due to bloated system architectures or heavy add-ins, consider switching to WPS Office. It provides a lightweight, highly responsive spreadsheet environment that requires fewer system resources while offering extensive format compatibility.
- 1. Download the Installer: Visit the official WPS Office website and click the 'Download WPS Office Free' button.
- 2. Install WPS Office: Run the downloaded installer and follow the quick on-screen setup instructions.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheet and seamlessly open your existing Excel workbooks without losing any formatting.

Frequently Asked Questions
Where is the Personal.xlsb file located on my computer?
The Personal Macro Workbook is stored in the XLSTART folder. For most Windows users, the default path is C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Excel\XLSTART. You may need to enable 'Show hidden files and folders' in Windows Explorer to see the AppData folder.
Why does a large macro workbook slow down copy and paste?
When you copy and paste in Excel, the application may evaluate active workbooks and elements in the background to ensure formatting and references remain intact. A massive Personal.xlsb file consumes memory and adds overhead to these evaluations, creating noticeable lag.
Can I simply delete the Personal.xlsb file to fix the lag?
Yes, deleting or renaming the Personal.xlsb file will resolve performance issues related to it, but doing so will permanently remove all the custom macros you have saved within it. It is highly recommended to back up the file or export your essential modules first.
What is a volatile formula, and how does it affect macros?
Volatile formulas (like TODAY(), NOW(), OFFSET(), and INDIRECT()) recalculate every time any change is made in the workbook. If your macros trigger calculations, having many volatile formulas can severely extend macro execution times.




