Excel Macro Library


This entry is part 4 of 9 in the series Excel VBA

After you have written a few macros you may want to have them available each time you use Excel. To do that you need to create a Personal Macro Workbook.

The Personal Macro Workbook is loaded whenever you start Excel. This file, named personal.xlsb, doesn’t exist until you record a macro using Personal Macro Workbook as the destination.

The book Excel® 2016 Power Programming with VBA by Michael Alexander and Dick Kusleika published by Wiley in the year 2016 describes this feature as follows: “Most user-created macros are designed for use in a specific workbook, but you may want to use some macros in all your work. You can store these general-purpose macros in the Personal Macro Workbook so that they’re always available to you. The Personal Macro Workbook is loaded whenever you start Excel. This file, named personal.xlsb, doesn’t exist until you record a macro using Personal Macro Workbook as the destination. To record the macro in your Personal Macro Workbook, select the Personal Macro Workbook option in the Record Macro dialog box before you start recording. This option is in the Store Macro In dropdown list. If you store macros in the Personal Macro Workbook, you don’t have to remember to open the Personal Macro Workbook when you load a workbook that uses macros. When you want to exit, Excel asks whether you want to save changes to the Personal Macro Workbook. Note: The Personal Macro Workbook normally is in a hidden window to keep it out of the way.”

Series Navigation<< Excel Entering Text with VBAExcel VBA Object Oriented >>