Skip to content

Make an Excel Macro Available in Every Workbook

  • by
Make excel available for all workbooks

Make reusable Excel VBA procedures available across workbooks by using PERSONAL.XLSB or an Excel add-in (.xlam).

Excel Macro is only available in the workbook on which we created it. However, with the following method you can make it available for all the workbooks/excel files.

Steps to make Macro available in all Workbooks

  1. Open Visual Basic Editor by navigating Developer Tab > Visual Basic
  2. Create Module by going to Insert Tab > Module
  3. Write the desired function/macro that you need to make it available for all excel workbook/files
  4. Save the current workbook with “.xlam” extension (say “LinearInterpolation Function.xlam”) in the default directory which windows prompts while saving.
  5. Go to Files > Options > Add-in and select the above Excel file/Macro from the list of Inactive Application Add-ins & Click Go. This step makes the function/macro available for all workbook.
Activating excel macro/add-ins to make macro available for each workbook
Activate excel macro/add-ins to make macro available for each workbook

Practical example and updated instructions

For your own frequently used macros, record a temporary macro and select Store macro in: Personal Macro Workbook. Excel creates PERSONAL.XLSB, which opens hidden when Excel starts; edit it in the Visual Basic Editor and save changes when closing Excel. For distributing reusable functions, save a trusted workbook as Excel Add-In (*.xlam), then enable it under File > Options > Add-ins > Manage: Excel Add-ins > Go > Browse.

Troubleshooting, limitations and accuracy notes

An .xlam file is not automatically enabled merely because it was saved in the suggested folder. Macro security and organization policies may block VBA. Excel for the web cannot execute VBA macros. Keep a backup of PERSONAL.XLSB and only enable code from trusted sources.

Frequently asked questions

Does this work in every version? Features and shortcuts can differ between Microsoft 365, older desktop editions, Mac and browser-based apps. Follow the version-specific notes above and test on a copy before making bulk changes.

Leave a Reply

Your email address will not be published. Required fields are marked *