VBA & Macro Problems

How to Create an Excel Macro Available in Multiple Workbooks

Algirdas JasaitisAlgirdas Jasaitis Oct 29, 2026 869 views

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.

How to Create an Excel Macro Available in Multiple Workbooks
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.
Before you start

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.

Solution 1Recommended

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.

1
Enable Developer Tab

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.

2
Open the Record Macro Dialog

Navigate to the Developer tab on the ribbon and click on 'Record Macro'.

3
Select the Storage Location

In the Record Macro dialog box, look for the 'Store macro in' drop-down list and select 'Personal Macro Workbook'.

4
Record Your Actions

Name your macro, click OK, and perform the sequence of actions you want to automate. Once finished, click 'Stop Recording' in the Developer tab.

5
Save the Personal Macro Workbook

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.

Save the Macro in the Personal Macro Workbook
Global Access Confirmed: Once saved, you can run this macro anytime by pressing Alt + F8 to open the Macros dialog box, selecting your macro from the list, and clicking Run.
Advanced VBA Support in WPS

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. 1. Download and Install WPS Office: Download WPS Office from the official website and install it to access the WPS Spreadsheet application.
  2. 2. Access Developer Tools: Open WPS Spreadsheet, navigate to the Developer tab, and click on 'Record Macro' or open the VBA Editor.
  3. 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.
Fully compatible with Microsoft Excel macro formats (.xlsm, .xlsb).Built-in advanced VBA editor for writing, editing, and debugging macros.Lightweight installation with a familiar ribbon interface.Automate repetitive daily data processing tasks effortlessly.
microsoft office alternative - wps office

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.