30 Advanced Excel Tips for 2026

Excel Champs / Excel Basics / How to Hide and Unhide a Workbook in Excel
By Puneet Gogia (Microsoft MVP)

How to Hide and Unhide a Workbook in Excel

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

Click into the workbook you want to hide and go to View → Hide (in the Window group). The file stays open, so formulas that link to it keep working, but its window disappears.

To bring it back, go to View → Unhide, pick the workbook in the dialog and click OK. The Unhide button stays greyed out until at least one workbook is hidden.

From the keyboard, press Alt, W, H to hide the active workbook and Alt, W, U to open the Unhide dialog, pressing the keys one after another.

If PERSONAL.XLSB appears in the Unhide list, that’s your Personal Macro Workbook, which Excel keeps hidden on purpose. Leave it hidden unless you need to edit a macro in it.

If you close Excel and save changes to a hidden workbook, it opens hidden next time and you see an empty grey window. Go to View → Unhide, show the workbook and save it again.

To hide one sheet rather than the whole file, right-click the sheet tab and choose Hide.

When you are working with multiple Excel workbooks (files), instead of closing them you can hide them and then unhide them when you need them again.

In Excel, you have the option to hide and unhide a workbook just by clicking a button, and as I said, hiding a workbook doesn’t mean you are closing it.

In this tutorial, we will learn how to hide and unhide a workbook.

hide-a-workbook

Hide a Workbook (Excel File)

Right now, I have four workbooks open in my Excel, and I want to hide two workbooks out of these four. You can use the following steps to do it.

  1. First, you need to go to the workbook that you want to hide.
  2. After that, go to the View tab.
  3. In the View tab, you have the “Window” group, where you have the Hide button.
  4. In the end, click the Hide button to hide the workbook that is active now.
view-tab-hidden-button

And the moment you click the “Hide” button, it seems like the file is closed, but it’s only hidden now.

The Hide button hides the window of the workbook, not the file itself. The workbook stays open in the background, so any formulas in other workbooks that refer to it keep working. Sheets that were already hidden inside the workbook stay hidden when you unhide it later.

Unhide a Workbook (Excel File)

And once you have a workbook hidden, you can unhide it using the Unhide button just below the Hide button.

unhide-dialog-box
  1. First, go to the View Tab.
  2. After that, in the Window group, there’s a button called “Unhide” (this button becomes active only when you have one or more workbooks hidden).
  3. Now, click the Unhide button to open the dialog box to unhide the workbook.
  4. In the end, from the dialog box, select the workbook that you want to unhide and click OK.

Keyboard Shortcuts to Hide and Unhide a Workbook

You can also use the keyboard shortcuts to hide and unhide a workbook:

  • Alt ⇢ W ⇢ H: To hide the active workbook.
  • Alt ⇢ W ⇢ U: To open the Unhide dialog box and unhide a workbook from there.

These are ribbon key tips, so you press the keys one after another, not together.

Hide and Unhide a Workbook on a Mac

In Excel for Mac, the Hide and Unhide options are in the Window menu, in the menu bar above the ribbon.

  1. First of all, go to the workbook that you want to hide.
  2. After that, click the Window menu in the menu bar and click Hide.
  3. To get it back, go to Window > Unhide, select the workbook and click OK.

Hide and Unhide a Workbook Using VBA

If you hide and unhide the same workbook often, you can do it with a macro. A workbook is hidden by setting the Visible property of its window to False, and it comes back when you set it to True.

The first macro below hides the active workbook, and the second one unhides a workbook by its name. Change “Sales.xlsx” to the name of your file (with its extension), and make sure that workbook is open.

Sub HideWorkbook()
' Hide the window of the active workbook
ActiveWindow.Visible = False
End Sub

Sub UnhideWorkbook()
' Show the window of an open workbook by its name
Workbooks("Sales.xlsx").Windows(1).Visible = True
End Sub

Put this code in a standard module (in the VBA editor, Insert > Module). Your Personal Macro Workbook is a good place for it, as its macros are available in every workbook you open.

What Happens When You Close Excel with a Hidden Workbook

When you exit Excel, it asks if you want to save changes to the hidden workbook, even if you haven’t changed any data. Excel treats hiding the window as a change.

  • Yes: Excel saves the workbook as it is now, so it opens hidden the next time you open it.
  • No: the workbook keeps the state it had when you last saved it.

So, if you open a file and see a blank Excel window with no grid, go to View > Unhide. The file was most likely saved while it was hidden.

Why the Unhide Button Is Greyed Out

If the Unhide button is greyed out, no open workbook has a hidden window. The Unhide dialog box lists only workbooks that are open right now. A hidden workbook that you have closed doesn’t show up there; open it first (File > Open), and then unhide it.

You may also see PERSONAL.XLSB in the Unhide list. That’s your Personal Macro Workbook, which Excel creates when you record a macro to it and keeps hidden on purpose. Leave it hidden; if you unhide it by mistake, hide it again with View > Hide.

One more thing: hiding a workbook isn’t a security option. Anyone who opens the file can unhide it in two clicks. If you want to stop people from seeing or changing data, use a password to open the file instead.

Frequently Asked Questions

Is a hidden workbook still open?

Yes. A hidden workbook stays open, and only its window is hidden. Its formulas still calculate, and other workbooks can still refer to its cells.

Why does my workbook open hidden every time?

It was saved while it was hidden. Go to View > Unhide, select the workbook and click OK, and then save it. The next time, it opens normally.

What is PERSONAL.XLSB in the Unhide dialog box?

It’s the Personal Macro Workbook, where Excel stores macros that you want to use in all your workbooks. Excel opens it hidden in the background, so you don’t need to unhide it.

What is the difference between hiding a workbook and hiding a sheet?

Hiding a workbook (View > Hide) hides the whole file’s window. Hiding a sheet (right-click the sheet tab > Hide) hides only that one sheet, while the rest of the workbook stays visible.

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel