To unhide the Personal Macro Workbook in Excel, go to the View tab, click Unhide in the Window group, select PERSONAL.XLSB from the list, and click OK. If Unhide is grayed out or PERSONAL.XLSB isn’t listed, the workbook may not exist yet, is already visible, or is hidden as an Excel Add-in—each case has a different fix covered below.
What Is the Personal Macro Workbook?
The Personal Macro Workbook is a hidden workbook named PERSONAL.XLSB that Excel creates when you record or store macros you want available in every workbook. It lives in your user profile folder, typically at C:\Users\[YourName]\AppData\Roaming\Microsoft\Excel\XLSTART on Windows. On a Mac, it is stored in ~/Library/Group Containers/UBF8T346G9.Office/User Content/Startup/Excel.
Because it is hidden by default, it does not appear in the Excel window even when Excel is running. This keeps it out of the way while still loading its macros automatically at startup. You might need to unhide it to edit a macro, copy a macro to another file, or troubleshoot why a macro isn’t running.
Why Is the Unhide Option Grayed Out?
The most common reason the Unhide button is grayed out is that there are no hidden workbooks currently open. The Personal Macro Workbook is only loaded into memory when Excel starts, so if you haven’t used it in a session, it may not be open at all. To load it, you can:
- Record a dummy macro: Go to View > Macros > Record Macro, name it (e.g., Temp), choose “Personal Macro Workbook” in the “Store macro in” dropdown, click OK, then click Stop Recording. This opens PERSONAL.XLSB in the background.
- Open it manually from the XLSTART folder using File > Open and browsing to the path above. If you open it this way, it appears in the Unhide list.
Another reason Unhide is grayed out is that the workbook is already visible—check the taskbar or the Window group for a PERSONAL.XLSB button. If you see it, you don’t need to unhide it.
How to Unhide PERSONAL.XLSB (Step by Step)
Once the Personal Macro Workbook is loaded, unhiding is straightforward:
- Go to the View tab on the ribbon.
- In the Window group, click Unhide.
- In the dialog box, select PERSONAL.XLSB and click OK.
On a Mac, the steps are the same: View > Unhide Window (the exact label may be “Unhide” in the Window menu). If you don’t see it, use the Window menu at the top of the screen and choose Unhide.
After unhiding, the workbook appears as a normal Excel window. You can edit its VBA code by pressing Alt+F11 (Windows) or Option+F11 (Mac) to open the Visual Basic Editor, then double-click “ThisWorkbook” or a module under PERSONAL.XLSB in the Project Explorer.
What to Do If PERSONAL.XLSB Isn’t Listed
If the Unhide dialog is empty or doesn’t show PERSONAL.XLSB, the workbook may not exist on your system. This happens when you’ve never recorded a macro to it or when it was deleted. To create it:
- Record any macro and choose “Personal Macro Workbook” as the destination. Excel will create PERSONAL.XLSB automatically.
- Alternatively, create a new workbook, press
Alt+F11, right-click in the Project Explorer, choose Insert > Module, and type a simple macro likeSub Hello()…End Sub. Then close the VBA editor and save the workbook as an Excel Macro-Enabled Workbook (.xlsb) into the XLSTART folder, naming it exactlyPERSONAL.XLSB.
If you already have a file named PERSONAL.XLSB but it doesn’t show up, it might be disabled as an add-in. Go to File > Options > Add-Ins, select “Excel Add-ins” in the Manage dropdown, click Go, and check if PERSONAL.XLSB is listed. If it is checked, uncheck and re-check it, then restart Excel.
How to Hide It Again (and Why You Might Want To)
After editing, you can hide the Personal Macro Workbook again to keep it out of the way. To hide it, go to View > Hide (in the Window group) while PERSONAL.XLSB is the active window. Excel will ask if you want to save changes—click Save to keep your edits. On a Mac, use Window > Hide.
Hiding is purely cosmetic; the macros remain available. If you prefer not to see it at all, you can also set the workbook’s Visible property to xlVeryHidden via VBA, which prevents it from appearing in the Unhide dialog. To do that, press Alt+F11, select PERSONAL.XLSB in the Project Explorer, open the Properties window (F4), and change Visible to 2 - xlSheetVeryHidden. This is more secure but can confuse you later if you forget it’s there.
Common Problems and Misconceptions
“I can’t see my macros after unhiding.” Unhiding the workbook does not show the macros in the Macro list. Macros are stored in modules, not on the sheet. Open the VBA editor to see them.
“My Personal Macro Workbook is corrupted.” If Excel crashes or you get errors when opening it, you can delete the file and recreate it. Be aware that deleting it removes all your personal macros, so back up the file first by copying it to another folder.
“It’s not loading at startup.” The file must be in the XLSTART folder and named exactly PERSONAL.XLSB. Also, check that macros are enabled: File > Options > Trust Center > Trust Center Settings > Macro Settings and choose “Disable all macros with notification” or “Enable all macros” (not recommended for security).
“I unhid it but now I have two windows.” That’s normal—one is the hidden workbook now visible, and the other is your regular workbook. You can hide it again when done.
Security and Best Practices
The Personal Macro Workbook can contain macros that run automatically when Excel starts, so it’s a potential security risk if someone else gains access to your computer. Treat it like a sensitive file:
- Never store passwords or confidential data in macros within PERSONAL.XLSB.
- Keep a backup copy in a secure location.
- If you share a computer, consider using a dedicated add-in (.xlam) instead, which can be loaded/unloaded per user.
- If you need to move macros to another computer, copy the PERSONAL.XLSB file to the same XLSTART folder on the new machine.
Also note that macros in PERSONAL.XLSB are not available in Excel for the web or in Excel on mobile devices—they only work in the desktop versions.
Alternatives to the Personal Macro Workbook
If you find the hidden workbook inconvenient, consider these alternatives:
- Add-ins (.xlam): Save your macros as an Excel Add-in. You can load it via File > Options > Add-Ins and manage it from the Add-ins dialog. It appears in a separate window and can be easily unloaded.
- Quick Access Toolbar: For simple tasks, you can add buttons that run macros stored in the current workbook or in an add-in, avoiding the need for a personal workbook.
- Office Scripts (Excel for the web): If you work in Excel online, Office Scripts provide a cloud-based way to automate tasks, but they don’t use VBA.
Each method has trade-offs: add-ins are more transparent but require manual loading; the Personal Macro Workbook is automatic but hidden and harder to manage.
Frequently Asked Questions
Q: Why is my Personal Macro Workbook not showing up in the Unhide dialog?
A: The most likely reason is that it isn’t open. Record a dummy macro to it or open the file manually from the XLSTART folder. If it still doesn’t appear, check if it’s disabled as an add-in or if the file is missing.
Q: Can I unhide the Personal Macro Workbook on a Mac?
A: Yes. On a Mac, go to the View tab (or the Window menu) and choose Unhide. The steps are essentially the same, though the menu labels may differ slightly.
Q: Does unhiding the Personal Macro Workbook make my macros visible to others?
A: No. Unhiding only makes the workbook visible in your Excel session. It does not expose the macros to other users unless you share the file or your computer.
Q: What happens if I delete PERSONAL.XLSB?
A: All macros stored in it are permanently deleted. Excel will recreate a new empty Personal Macro Workbook the next time you record a macro and choose “Personal Macro Workbook” as the destination.
Q: Can I rename the Personal Macro Workbook?
A: Technically you can rename the file, but Excel will no longer recognize it as the Personal Macro Workbook. It will behave like a regular workbook, and macros won’t auto-load. It’s best to keep the name PERSONAL.XLSB.
Related
- How to Select Items on a Laptop (Mouse & Keyboard)
- Fed Bank Balance Sheet: How It Works and Why It Matters
- String to Number Power Automate: Convert Text to Int
Try it: the Column Letter to Number: aA is 27, XFD is 16,384. Converts both ways.
More in VBA & macros
- VBA Excel Sort Rows: Code, Options, and Common FixesTo sort Excel rows with VBA, define the complete data range, choose a key column, and apply a…
- Excel VBA MsgBox Font Size: Change It or Use a FormYou cannot set the font size of Excel’s built-in VBA MsgBox directly: its text uses the standard Windows…
- Py Macro Recorder: How Python Records and Replays ActionsA Py macro recorder is a tool for capturing keyboard or mouse actions and replaying them, often with…
- Reset Used Range in Excel VBA: Safe Steps and CodeTo reset an inflated used range in Excel VBA, delete the unused rows below and columns to the…
- VBA Left Function: How to Return Text from the StartIn VBA, use Left(string, length) to return a specified number of characters from the beginning of a string.…
- Excel Goal Seek VBA Code for a Whole ColumnTo run Goal Seek down a column, loop through the populated rows and call Range.GoalSeek once per row:…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.