How to Create an Excel Macro Available in Multiple Workbooks
Question details
The user wants to create a macro in Excel that can be executed from any active workbook, rather than being restricted to the specific workbook where it was originally recorded.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Automating repetitive data entry or formatting tasks across different Excel files without having to recreate the macro for each new file.
- Observed behavior
- The goal is to ensure the macro is globally accessible whenever the Excel application starts, independent of the currently active file.
Ensure that the Developer tab is enabled in your Excel ribbon, as you will need it to access the macro recording and VBA editing tools.
Save the Macro in the Personal Macro Workbook
By saving a macro in the Personal Macro Workbook (PERSONAL.XLSB), it becomes globally accessible to all workbooks opened on your computer.
The Personal Macro Workbook is a hidden background workbook that opens automatically every time you start Excel. Any macros stored within this file are loaded into memory and can be triggered from any other open workbook.
If you don't see the Developer tab, go to File > Options > Customize Ribbon, check the 'Developer' box in the right pane, and click OK.
Navigate to the Developer tab on the ribbon and click on 'Record Macro'.
In the Record Macro dialog box, look for the 'Store macro in' drop-down list and select 'Personal Macro Workbook'.
Name your macro, click OK, and perform the sequence of actions you want to automate. Once finished, click 'Stop Recording' in the Developer tab.
When you completely close the Excel application, a prompt will appear asking if you want to save the changes made to the Personal Macro Workbook. Click 'Save' to ensure your newly recorded macro is available for future sessions.

Create and Manage Global Macros with WPS Spreadsheet
WPS Office provides robust VBA and macro support, allowing you to easily automate tasks and create global macros that work seamlessly across multiple spreadsheets.
- 1. Download and Install WPS Office: Download WPS Office from the official website and install it to access the WPS Spreadsheet application.
- 2. Access Developer Tools: Open WPS Spreadsheet, navigate to the Developer tab, and click on 'Record Macro' or open the VBA Editor.
- 3. Record and Save Your Macro: Record your desired task sequences and manage your macro library to ensure they are available for all your data analysis workflows.

Frequently Asked Questions
Where is the Personal Macro Workbook stored on my computer?
By default, the PERSONAL.XLSB file is stored in the XLSTART folder. The exact path usually looks like C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Excel\XLSTART. This folder ensures the file is loaded automatically upon startup.
Why is my Personal Macro Workbook not opening when I start Excel?
It may have been accidentally disabled. To fix this, go to File > Options > Add-Ins. At the bottom of the window, select 'Disabled Items' from the Manage drop-down list and click Go. If PERSONAL.XLSB is listed there, select it and click Enable.
How do I edit or delete a macro stored in the Personal Macro Workbook?
Because the Personal Macro Workbook is hidden by default, you cannot edit its macros directly. First, go to the View tab and click 'Unhide'. Select PERSONAL.XLSB and click OK. Now you can open the VBA Editor (Alt + F11) to edit or delete your macros. Remember to hide the workbook again when finished.




