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
- Open Visual Basic Editor by navigating Developer Tab > Visual Basic
- Create Module by going to Insert Tab > Module
- Write the desired function/macro that you need to make it available for all excel workbook/files
- Save the current workbook with “.xlam” extension (say “LinearInterpolation Function.xlam”) in the default directory which windows prompts while saving.
- 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.

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.
Related Posts

C P Gupta is a YouTuber and Blogger. He is expert in Microsoft Word, Excel and PowerPoint. His YouTube channel @pickupbrain is very popular and has crossed 9.9 Million Views.
