Excel all sheets hidden

Hide or unhide a worksheet

Note: The screen shots in this article were taken in Excel 2016. If you have a different version your view might be slightly different, but unless otherwise noted, the functionality is the same.

  1. Select the worksheets that you want to hide.

    How to select worksheets

    To select

    Do this

    A single sheet

    Click the sheet tab.

    Worksheet tabs at the bottom of the Excel window

    If you don’t see the tab that you want, click the scrolling buttons to the left of the sheet tabs to display the tab, and then click the tab.

    Two or more adjacent sheets

    Click the tab for the first sheet. Then hold down Shift while you click the tab for the last sheet that you want to select.

    Two or more nonadjacent sheets

    Click the tab for the first sheet. Then hold down Ctrl while you click the tabs of the other sheets that you want to select.

    All sheets in a workbook

    Right-click a sheet tab, and then click Select All Sheets on the shortcut menu.

    Tip: When multiple worksheets are selected, [Group] appears in the title bar at the top of the worksheet. To cancel a selection of multiple worksheets in a workbook, click any unselected worksheet. If no unselected sheet is visible, right-click the tab of a selected sheet, and then click Ungroup Sheets on the shortcut menu.

  2. On the Home tab, in the Cells group, click Format > Visibility > Hide & Unhide > Hide Sheet.

    Hid or unhide worksheets from Home > Cells > Format > VIsibility > Hide & Unhide

  3. To unhide worksheets, follow the same steps, but select Unhide. You’ll be presented with a dialog box listing which sheets are hidden, so select the ones you want to unhide.

    Unhide sheets dialog

    Note: Worksheets hidden by VBA code have the property xlSheetVeryHidden; the Unhide command will not display those hidden sheets. If you are using a workbook that contains VBA code and you encounter problems with hidden worksheets, contact the workbook owner for more information.

Hide or unhide a workbook window

  • On the View tab, in the Window group, click Hide or Unhide.

    On a Mac, this is under the Window menu in the file menu above the ribbon.

    Hide or show a workbook from View > Windows > Hide/Unhide

Notes: 

  • When you Unhide a workbook, select from the list in the Unhide dialog box.

    Unhide windows dialog

  • If Unhide is unavailable, the workbook does not contain hidden workbook windows.

  • When you exit Excel, you will be asked if you want to save changes to the hidden workbook window. Click Yes if you want the workbook window to be the same as you left it (hidden or unhidden), the next time that you open the workbook.

Hide or display workbook windows on the Windows taskbar

Excel 2013 introduced the Single Document Interface, where each workbook opens in its own window.

  1. Click File > Options.

    For Excel 2007, click the Microsoft Office Button Office button image, then Excel Options.

  2. Then click Advanced > Display > clear or select the Show all windows in the Taskbar check box.

Hide or unhide a worksheet

  1. Select the worksheets that you want to hide.

    How to select worksheets

    To select

    Do this

    A single sheet

    Click the sheet tab.

    Worksheet tabs at the bottom of the Excel window

    If you don’t see the tab that you want, click the scrolling buttons to the left of the sheet tabs to display the tab, and then click the tab.

    Two or more adjacent sheets

    Click the tab for the first sheet. Then hold down Shift while you click the tab for the last sheet that you want to select.

    Two or more nonadjacent sheets

    Click the tab for the first sheet. Then hold down Command while you click the tabs of the other sheets that you want to select.

    All sheets in a workbook

    Right-click a sheet tab, and then click Select All Sheets on the shortcut menu.

  2. On the Home tab, click Format > under Visibility > Hide & Unhide > Hide Sheet.

  3. To unhide worksheets, follow the same steps, but select Unhide. The Unhide dialog box displays a list of hidden sheets, so select the ones you want to unhide and then select OK.

    Unhide sheets dialog

Hide or unhide a workbook window

  • Click the Window menu, click Hide or Unhide.

Notes: 

  • When you Unhide a workbook, select from the list of hidden workbooks in the Unhide dialog box.

    Unhide windows dialog

  • If Unhide is unavailable, the workbook does not contain hidden workbook windows.

  • When you exit Excel, you will be asked if you want to save changes to the hidden workbook window. Click Yes if you want the workbook window to be the same as you left it (hidden or unhidden) the next time that you open the workbook.

Hide a worksheet

  1. Right click on the tab you want to hide.
    Hide tab in Excel for the web

  2. Select Hide.

Unhide a worksheet

  1. Right click on any visible tab.

  2. Select Unhide.
    Unhide in Excel for the web

  3. Mark the tabs to unhide.
    Select tab to unhide in Excel for the web

  4. Click OK.

One of the first “tricks” an Excel user learns is to hide and unhide a sheet.

This is an exceptionally useful feature as it allows us to store data in a sheet, such as lists and tables, but keep the user of the workbook from seeing, manipulating, and more importantly, corrupting the information on the hidden sheet.

As with most things in Excel, there is more than one way to hide a sheet or multiple sheets.  One of the easiest methods is to select a sheet (or select multiple sheets using standard Windows CTRL and Shift selection techniques), right-click the sheet tab then select “Hide”.

As an example; suppose you have twelve sheets labeled “January” through “December” and you want to hide all the monthly sheets except “December”.

  1. Select the “Jan” sheet
  2. Hold down the Shift key
  3. Select the “Nov” sheet
  4. Right-click on any selected sheet tab
  5. Click “Hide

Unfortunately, unhiding multiple sheets in a single step is not as easy.  If you right-click a sheet tab and select “Unhide”, the proceeding dialog box only allows a single sheet to be selected for the unhide operation.

This means you will have to perform the unhide operation eleven times to restore all the hidden sheets to a visible state.

Never fear, a solution is here (actually, three solutions)

Solution 1 – Create a Custom View

An often-overlooked feature in Excel is the ability to save a custom view.

Custom views can be used to “save” the hidden or visible states of rows and columns.  This is convenient when you wish to show details of data for one printout, but a summarized version of the data in a different printout.

  1. Hide the desired rows and/or columns.
  2. Click View (tab) -> Workbook Views (group) -> Custom Views -> Add… and give the current configuration a name.

If you change the hidden/visible state of rows and/or columns but then wish to return to the saved configuration, repeat the process (View (tab) -> Workbook Views (group) -> Custom Views), select your saved view then click “Show”.

The screen will immediately return to the desired state.

Custom views also work with the visible/hidden states of worksheets.  If we create a custom view prior to hiding ANY of the sheets (View (tab) -> Workbook Views (group) -> Custom Views -> Add…), we can hide as many sheets as we like.  When it comes time to redisplay all the sheets, we repeat the process and select our “normal” view and click “Show”.

All the sheets have returned.

There is one negative to this process.  Custom views do not work with Data Tables.  The moment you add a Data Table to ANY sheet, the Custom Views feature becomes inoperable.

Because more and more people use Data Tables in their workbooks (and why wouldn’t you?  They’re AMAZING!!!), we need to explore another way of unhiding all hidden worksheets.

Solution 2 – Using the VBA Immediate Window

Right up front, this does not require the use of macro-enabled workbooks.  This technique can be performed in any Excel workbook.

  1. Open the Visual Basic Editor by pressing Alt-F11 on the keyboard or right click on any sheet tab and select View Code.

Don’t concern yourself with what you see in the ensuing window; all of that is for another day.

  1. Activate the Immediate Window by clicking View -> Immediate Window (or CTRL-G).

Now we will run a macro.  This macro will loop through all the hidden sheets and revert their visibility states to “visible”.  We will use a “For…Each” collection loop to perform this operation.

NOTE:  If you are interested in learning about this command and many other useful things macros can do for you, visit the links at the end of this tutorial.

  1. In the Immediate window, type
for each sh in worksheets: sh.visible=true: next sh

(press Enter)

All the sheets have returned to a visible state.

What does that code mean?  Let’s break down the code.

for each sh in worksheets

This establishes a collection (list) of all worksheets and allows us to refer to each sheet individually with the alias “sh”.

sh.visible=true

With the first sheet in the collection, set the visible property to “true”.  This makes the sheet visible to the user.

next sh

This selects the next sheet in the collection and returns to the first statement to repeat the process.

This process will repeat for as many sheets as are in the collection.

If this code is something you will use frequently, you can save the code in a Notepad file and then copy/paste it back into the Immediate Window whenever needed.

Solution 3 – Add a Macro to the Quick Access Toolbar (QAT)

This technique is covered in detail in the Excel VBA course (link below if you are interested in becoming a VBA Powerhouse) but will be summarized here.

If this feature is to be used often across many different workbooks, it’s worth taking the time to set this feature up on the QAT.

We will create a simple macro and store it in a special place in Excel called the Personal Macro Workbook.

Creating the Macro

  1. Click the “Record Macro” button on the Status Bar in the lower-left corner of Excel.
  2. Give the macro a name (“Unhide_All” is a good name.) Macro names cannot contain spaces.
  3. Change the “Store macro in:” option from “This Workbook” to “Personal Macro Workbook”.
  4. Click OK
  5. Click the “Stop Recording” button on the Status Bar in the lower-left corner of Excel.
  6. Open the Visual Basic Editor (Alt-F11).
  7. In the Project Explorer panel (upper-left), click the plus-sign next to the entry labeled “VBAProject (PERSONAL.XLSB)”.
  8. Click the plus-sign next to the folder labeled “Modules”.
  9. Double-click the module named “Module1”.
  10. Highlight and delete EVERYHTING in the code window (right panel).
  11. Enter the following code:
Sub Unhide_All()
Dim sh As Worksheet
	for each sh in worksheets: sh.visible=true: next sh
End Sub

Setting up the QAT Macro Launch Button

  1. Click the down arrow at the far right of the QAT and select “More Commands…” towards the bottom of the list.
  2. In the dropdown titled “Choose commands from:” select “Macros”.
  3. Select the “Unhide_All” macro on the left and click “Add>>” to move the macro to the list on the right.
  4. Click the “Modify” button to personalize the button icon as well as provide a tooltip. Whatever you write in the “Display name:” filed will appear on the screen when the user hover’s over the launch button on the QAT.
  5. Click OK.

Whenever you want to invoke the macro to unhide all the hidden sheets, click the unhide macro button on the QAT.

This feature is available for use in all open workbooks.  Because we have updated the Personal Macro Workbook, don’t forget to save the changes to the Personal Macro Workbook when closing Excel.

Additional Resources

Excel VBA For…Each Loop tutorial

Excel VBA – Full Playlist

If you don’t have Office 365 and you’d like a free tool that unhides all sheets for you, then this is it!

You can add this tool to your Quick Access Toolbar or to your Excel ribbon by saving it in your Personal Macro Workbook. In this video I show you the steps to do that.

Many Thanks to Daniel Lamarche from Combo Projects for sharing this tool for free with our community members.

Please visit Daniel’s page at:

The Unhide Worksheets utility

Published on: March 7, 2019

Last modified: March 2, 2023

Microsoft Most Valuable Professional

Leila Gharani

I’m a 5x Microsoft MVP with over 15 years of experience implementing and professionals on Management Information Systems of different sizes and nature.

My background is Masters in Economics, Economist, Consultant, Oracle HFM Accounting Systems Expert, SAP BW Project Manager. My passion is teaching, experimenting and sharing. I am also addicted to learning and enjoy taking online courses on a variety of topics.

Watch Video – How to Unhide All Sheets In Excel

In case you prefer reading a tutorial over watching a video, below is a detailed written tutorial on unhiding sheets in Excel.

When you work with data that is spread across multiple worksheets in Excel, you may want to hide a few worksheets. This could be to avoid the clutter or to not show some data to your client/manager by hiding some worksheets and only keeping the useful ones visible.

And in some cases, you may have a workbook that has some hidden sheets and you want to unhide some or all of these worksheets.

In this tutorial, I will show you some methods to unhide worksheets in Excel (manually as well as automatically using VBA). I will also show you how to selectively unhide worksheets based on the name or a condition.

So let’s get started!

Unhiding Sheets Manually

If you only have a few worksheets that are hidden, you can manually unhide some or all of these worksheets.

Suppose you have an Excel workbook that has 10 worksheets that are hidden.

Below are the steps to manually unhide worksheets (one at a time):

  1. Right-click on any of the existing worksheet tabRight-Click on any visible sheet name
  2. Click on the Unhide option. This will open the Unhide dialog box that lists all the hidden worksheetsClick the Unhide Sheets option
  3. In the Unhide dialog box, click on the worksheet that you to unhide (you can only select one at a time).Select the sheet you want to unhide
  4. Click OK.Click OK to unhide the selected sheet

The above steps would unhide the select worksheet.

Note: Unfortunately, there is no in-built functionality in Excel to quickly unhide all the hidden worksheets (or a way to select more than one worksheet and unhide it). As of now, you need to use the unhide dialog box where you can only select one worksheet to unhide.

You can hide worksheets in bulk, but not unhide in bulk

If you want to hide worksheets, you can select multiple worksheets at once (hold the control key and click on the worksheet tab name), right-click and click on the Hide option.

Unfortunately, there is no in-built functionality in Excel to quickly unhide all the hidden worksheets (or a way to select more than one worksheet and unhide it). As of now, you need to use the unhide dialog box where you can only select one worksheet to unhide.

While there is no-inbuilt functionality to unhide in bulk, you can easily do this with a simple VBA macro code.

Unhide All Sheets At One Go

With VBA, you can easily unhide worksheets in bulk.

For example, if you have 10 hidden worksheets, you can create a simple VBA code to unhide all the worksheets or you can unhide based on a condition (such as unhide only those where there is a specific prefix or year in the name).

Note: The methods covered in this tutorial doesn’t require you to save an Excel workbook in a macro-enabled format (.XLSM) to use the VBA code.

Using Immediate Window

VB Editor in Excel has an immediate window where you can type a line of code and instantly execute it right away.

Below are the steps to use this above line of code to unhide sheets through immediate window:

  1. Right-click on any of the visible sheets in the workbook
  2. Click on View code. This will open the VB Editor.Click the View code option to open the VB Editor in Excel
  3. Click the View option in the menu and then click on the Immediate window. This will make the Immediate window appear in the VB Editor (if not there already).Click on View and the click on the Immediate Window
  4. In the Immediate window, copy and paste the following line of code: For each Sheet in Thisworkbook.Sheets: Sheet.Visible=True: Next SheetEnter the code to unhide sheets in immediate window
  5. Place the cursor at the end of the linePlace the cursor at the end of the line of code
  6. Hit the Enter key

That’s it!

The above steps would instantly unhide all the sheets in the workbook.

Once done, you can close the VB Editor.

The best part about this is that you can do this on any workbook. You don’t need to worry about saving the workbook in a macro-enabled format. Just execute a line of code and instantly unhide all the sheets in the workbook.

Let me also quickly explain the below VBA code that we have used in the immediate window to unhide sheets:

For each Sheet in Thisworkbook.Sheets: Sheet.Visible=True: Next Sheet

The above code uses a For Next VBA loop to go through all the sheets in the workbook and set the visible property to TRUE. Once the visible property of all the sheets is changed, the code will end.

The colon (:) used in the code above is equivalent to a line break. While it looks like a single line of code, it has three parts to it which are separated by two colons.

If you’re interested in learning more about the immediate window and some awesome things you can do with it, here is a detailed tutorial about it.

By Adding Macro to QAT (with One Click)

In case you have to unhide worksheets quite often, another good way could be to have the macro code to unhide sheets in the Personal macro workbook and save the icon in the Quick Access Toolbar.

This is just a one time process and once you have it done, you can then unhide sheets in any workbook by simply clicking on a button in the QAT.

This is by far the most efficient way to unhide sheets in Excel (most useful when you get a lot of workbooks with hidden sheets and you have to unhide these).

The trick here is to save the code to unhide sheets in the Personal Macro Workbook.

A Personal Macro Workbook is something that is always open when you open any Excel file (you can’t see it though). When you save a macro code to the Personal Macro workbook, this code is now always available to you. And when you add this to the QAT and you run the macro code with a single click.

Below is the code that you need to add to the Personal Macro Workbook:

Sub UnhideAllSheets()
For Each Sheet In Sheets
    Sheet.Visible = True
Next Sheet
End Sub

Below are the steps to add this code to the Personal Macro Workbook:

  1. Click on the record macro button (it’s at the bottom left of the Excel workbook application)Click on record macro icon
  2. In the Record Macro dialog box, change the Store macro in setting to – Personal Macro Workbook.Make sure Personal Macro Workbook is the place where macro is stored
  3. Click OK. This will start recording the macroClick on OK
  4. Click on the Stop macro recording icon (at the bottom left of the workbook). This will stop the macro recordingClick on Stop Macro Recording Icon
  5.  Right-click on any sheet tab and then click on ‘View Code’Click the View code option to open the VB Editor in Excel
  6. In the VB Editor, double-click on the Module object in the Personal.XLSB workbookDouble click on the Personal Macro Workbook Module option
  7. Remove any existing code and copy and paste the above code.Copy and Paste the code in the module
  8. Click the Save icon in the toolbarSave the macro in the Personal Macro Workbook
  9. Close the Vb Editor

The above steps allow you to make the Personal Macro Workbook visible in the VB Editor and place the code to unhide sheets in it.

Now all you need to do is add this code to the Quick Access Toolbar so that you can use it anytime from any workbook.

Below are the steps to add this code to the Quick Access Toolbar:

  1. Click on the Customize Quick Access Toolbar icon.Click on the Customize Quick Access Toolbar icon
  2. Click on More Commands.Click on More Commands
  3. In the Excel Options dialog box, click on the ‘Choose Commands from’ drop-downClick on Choose Commands Drop Down
  4. Click on Macros. This will show you a list of all the macros in the workbook (including the ones in PERSONAL.XLSB)Click on Macros
  5. Select the macro code to unhide sheetsClick on the macro that you want to add to the QAT
  6. Click on the Add buttonClick on the Add Button
  7. Click OK.

The above steps would add this macro code to unhide sheets in the Quick Access Toolbar.

Macro is added to the QAT

Now, whenever you get a workbook that has some sheets hidden, you just need to click on the code icon in the QAT and it will instantly unhide all sheets in one go.

Unhide Sheets With Specific Text in the Name

With VBA, you can also unhide sheets based on the name.

For example, suppose you have a workbook that contains sheets with years in the name and you want to unhide all the ones where the year is 2020.

You can use the below code to unhide all the sheets with the text 2020 in it:

Sub UnhideSheetsWithSpecificText()
For Each ws In ThisWorkbook.Worksheets
    If InStr(ws.Name, "2020") > 0 Then
        ws.Visible = xlSheetVisible
    End If
Next ws
End Sub

The above uses the For Next loop to go through each worksheet in the workbook. The IF Then condition then checks the name of the worksheet and if it contains the specified text (which is 2020 in this code), it will change the visible property to make it visible.

And if the name doesn’t contain the specified text, it will leave it as is.

You can also modify this code to hide sheets based on the text in the name.

For example, if you want to quickly hide all the worksheets where the name contains the text ‘2020’ in it, you can use the below code:

Sub HideSheetsWithSpecificText()
For Each ws In ThisWorkbook.Worksheets
    If InStr(ws.Name, "2020") > 0 Then
        ws.Visible = xlHidden
    End If
Next ws
End Sub

Note: You can save this code in a regular module inside VB Editor or you can save this in the Personal Macro Workbook. In case you save it in a regular module and need to use it again later, you need to save the workbook as a macro-enabled workbook (.XLSM format).

Unhide Selected Sheets (Based on User Selection)

You can also use VBA to give the user the flexibility to choose whether to unhide a sheet or not.

This can be done by showing a message box that asks the user to select whether to unhide a sheet or not. If selected, it unhides that sheet, else it moves to the next one.

Below is the code that will do this:

Sub UnhideSheetsUserSelection()
For Each sh In ThisWorkbook.Sheets
    If sh.Visible <> True Then
        Result = MsgBox("Do You Want to Unhide " & sh.Name, vbYesNo)
        If Result = vbYes Then sh.Visible = True
    End If
Next sh
End Sub

The above code goes through each sheet in the workbook and checks whether it’s already visible or not. If it’s hidden, then it shows the message box with the name of the worksheet.

As a user, you can now decide whether you want to keep this sheet hidden or unhide it.

This can work well if you have some worksheets that are hidden and you want to take a call for every sheet individually.

Note: You can save this code in a regular module inside VB Editor or you can save this in the Personal Macro Workbook. In case you save it in a regular module and need to use it again later, you need to save the workbook as a macro-enabled workbook (.XLSM format).

Here is a tutorial where I show how to save the code in the regular module in Excel (search for the ‘Where to put this code’ section in this article)

Unhide All or Selected Sheets Using Custom View

This is a less known method in case you want to quickly unhide all the worksheets (or some selected worksheets).

‘Custom View’ is functionality in Excel that allows you to create and save views that you can quickly resort to with a click of a button.

For example, suppose you have an Excel workbook with 10 worksheets. You can create a view where all these 10 sheets are visible. In the future, if you have some sheets hidden and you want o go back to the view where all the sheets were visible, you can do that by selecting the already saved custom view.

Don’t worry, you don’t lose any changes you made after creating the custom view. All custom view does is takes you back to the Excel view when you created it. So if some worksheets were visible when you created the view and are now hidden, selecting that custom view would unhide these sheets.

The intended use of Custom View is to allow users to create different views. For example, if you’re an analyst, you can create different views for different departments in your organization. So you can have a specific set of worksheets (or cells/rows/columns) visible for one department and another set for another department. Once you have these views, instead of changing this manually, you simply activate the view for a department and it will show you worksheets (or rows/columns) relevant for them only.

Below are the steps to create a custom view in Excel:

  1. Unhide all the worksheets to begin with
  2. Click the View tab
  3. Click on Custom ViewsClick on Custom Views option
  4. In the Custom Views dialog box, click on Add. This will open the Add view dialog boxClick on Add button in Custom views
  5. Enter any name for this view where all the sheets (or selected sheets) are visibleEnter the Custom view name
  6. Click OK.Click OK to create the custom view

Once the view is created, you can anytime ask Excel to activate this view (which would make all those sheets visible that were visible when you created the view).

Below are the steps to show/activate a custom view:

  1.  Click the View tab
  2. Click on Custom ViewsClick on Custom Views option
  3. In the Custom Views dialog box, select the view that you want to showSelect the custom view
  4. Click on Show buttonClick on Show to activate that custom view

This would instantly unhide sheets and show those that were visible when you created that custom view.

Unhiding Sheets that are ‘Very Hidden’

Sometimes, despite having some hidden sheets in your workbook, you would not be able to unhide it manually.

This could be because these sheets are not just hidden – these are ‘very hidden’.

When you have hidden sheets in a workbook and you right-click on any tab name, you would see the option to ‘Unhide’ sheets. But if you have sheets are ‘very hidden’ or if there are no hidden sheets, then you would not be able to use this option (it will be greyed out).

You can still unhide these ‘very hidden’ sheets by using the VBA code that we have covered above.

Just copy-paste the below code in the immediate window and hit enter and it would instantly unhide all the sheets (hidden as well as very hidden).

For each Sheet in Thisworkbook.Sheets: Sheet.Visible=True: Next Sheet

I also have a full tutorial on how to hide sheets and make these very hidden (in case you’re interested in learning)

You may also like the following Excel tutorials:

  • How to Quickly Unhide COLUMNS in Excel
  • How to Rename a Sheet in Excel
  • Delete Rows Based on a Cell Value (or Condition) in Excel
  • Hide Zero Values in Excel
  • Working with Worksheets using Excel VBA
  • How to Group Worksheets in Excel
  • How to Delete All Hidden Rows and Columns in Excel
  • Excel Tabs/Sheets Not Showing – How to Fix?

Unhiding hidden worksheets in Excel was for a long time troublesome, especially if there were many hidden worksheets in your workbook. Fortunately, Microsoft has just released a new feature in Office 365 (now: “Microsoft 365) for unhiding multiple sheets at once. So far, so good. But what, if you want to unhide “very hidden” sheets? Or, what if you work with older Office versions? Here is everything you need to know!

In this first part you learn to unhide “normal” hidden worksheets in Excel. This regards the far majority of hidden worksheets. If you “miss” a worksheet from the list of hidden sheets, it’s possible that it is very hidden. For very hidden sheets, please click here to scroll down.

Unhide worksheets manually

excel, unhide, manually, worksheet, sheet, hide
Unhide worksheets manually by right clicking on any other worksheet.

The first step: Check if there are any hidden worksheets. Therefore, right click on any sheet name. If the “Unhide” option is greyed out, there are no hidden worksheets in your workbook.

If the “Unhide” button in clickable, click on it. Now you’ll see a list with all hidden (not very hidden) worksheets. Click on any worksheet name in that list and click on OK. 

You want to hide a worksheet? It works basically the same way, just click “Hide” instead of “Unhide”. Please refer to this article for more information.

Update 2021: Unhiding multiple sheets at once with built-in methods (Office 365)

It’s finally here: Unhide multiple worksheets at once in Excel. Microsoft has listened to user suggestions and implemented a fast method to unhide several worksheets:

  1. Right-click on any sheet name.
  2. Click on “Unhide…” (again: if this button is greyed-out it means that there are no hidden sheets in your file).
  3. Hold down the Ctrl key on the keyboard and click on the sheet names one by one you want to show.
    Alternatively, hold down the Shift key to select many sheets at once.

Please note: This feature is only available in Office 365 since beginning of 2021. If you work with older versions of Office / Excel, you have to use one of the following methods.

Unhiding multiple worksheets at once with older versions of Excel

unhide, worksheets, sheets, hide, excel, all, complete
Steps for pasting the VBA function to your Excel Workbook

Again, this is primarily revelant for older versions of Excel (not Office 365 since beginning of 2021; if you are on the current Excel version please scroll up). There is another way of unhiding all hidden and very hidden worksheets: Using VBA. As usual, do the following steps:

  1. Go to the developer ribbon in Excel (or just press Alt + F11 on the keyboard and skip the next step number two).
  2. Click on “Visual Basic”.
  3. Add a new module. Therefore, right click on any sheet and then click on “Insert” and “Module”.
  4. Paste the following code.
  5. Press start on the top.

You can follow the steps on the screenshot on the right-hand-side. If you need assistance with adding the VBA module, please refer to this article.

Sub PROFEXUnhideAllWorksheets()
    'Unhide all sheets in workbook.
    
    Dim PROFEXWorksheet As Worksheet
    'A variable for going through all the worksheets
    
    For Each PROFEXWorksheet In ActiveWorkbook.Worksheets
    'Do for each worksheet, no matter if hidden or unhidden
    
        PROFEXWorksheet.Visible = xlSheetVisible
        'Make the current worksheet visible
        
    Next PROFEXWorksheet
    'End of the loop...

End Sub

How to unhide hidden worksheets with a keyboard shortcut?

To speed up unhiding sheets with older versions than the current Office 365 version, you can use keyboard shortcuts. Press the following keys after each other:

Alt –> O –> H –> U –> Enter 

Repeat these steps – this should speed up the process of unhiding. There is one more disadvantage: This method doesn’t work for all “very hidden” worksheets in Excel.

Very hidden worksheets you have to unhide within the VBA editor (see below in part 2). Select the very hidden worksheet and set the visibility to show. Therefore click on “Visible” in the properties window (usually on the left bottom corner) and set it to “xlSheetVisible”.


Do you want to boost your productivity in Excel?

Get the Professor Excel ribbon!

Add more than 120 great features to Excel!


very hidden, hide, worksheets, worksheet, sheet, unhide, vba, excel
How to hide or unhide a “very hidden” worksheet in Excel

Yes, it sounds strange. Maybe programmer humor… But there is the option to set sheets to “very hidden” in Excel. For unhiding “very hidden” worksheets, you have to open the VBA editor.

  1. Click on “Visual Basic” on the left hand side of the Developer ribbon.
  2. You can see a list of all worksheets within the Project Explorer.
  3. Change the status “Visible” to “xlSheetVisible”.

Part 3: Unhide unhiding hidden and very hidden worksheets comfortably

As unhiding worksheets can be very troublesome, we have included a very simple function into Professor Excel Tools: A worksheet manager.

Just click on “Unhide Sheets” on the “Professor Excel” ribbon. If you don’t have it yet: Download the add-in here.

worksheet, manager, professor, excel, tools

Worksheet Manager in the Excel add-in Professor Excel Tools.
  1. Check the summary: How many hidden and very hidden worksheets does your file have?
  2. Conveniently see all worksheets in a list and select them easily. See also the visibility level of “Visible”, “Hidden” or “Very hidden”.
  3. Either select all sheets from the list or click one of the easy select button (for example, select all hidden but not very hidden worksheets).
  4. Action: Decide, what to do with these sheets: Unhide them, hide them or set them to very hidden.

Professor Excel Tools Box

This function is included in our Excel Add-In ‘Professor Excel Tools’

(No sign-up, download starts directly)


Содержание

  1. How to Hide a Worksheet in Excel (that can not be unhidden)
  2. Regular Way of Hiding a Worksheet in Excel
  3. Hide a Worksheet So That It Can Not be Unhidden
  4. Unhide a Sheet that has been ‘Very Hidden’
  5. Hide/Unhide Worksheets Using VBA
  6. Как сделать лист очень скрытым
  7. How to Unhide Sheets in Excel (All In One Go)
  8. Unhiding Sheets Manually
  9. Unhide All Sheets At One Go
  10. Using Immediate Window
  11. By Adding Macro to QAT (with One Click)
  12. Unhide Sheets With Specific Text in the Name
  13. Unhide Selected Sheets (Based on User Selection)
  14. Unhide All or Selected Sheets Using Custom View
  15. Unhiding Sheets that are ‘Very Hidden’

How to Hide a Worksheet in Excel (that can not be unhidden)

Hiding and Unhiding worksheets in Excel is a straightforward task.

You can hide a worksheet and the user would not see it when he/she opens the workbook. However, they can easily unhide the worksheet if they want (as we will see later in this tutorial).

But what if you don’t want them to be able to unhide the worksheet(s).

To do that, you need to take a couple of additional steps to make sure the worksheets are ‘very hidden’ (also covered later in this tutorial).

Let’s see how to hide a worksheet in Excel so that it can easily be unhidden, or can not be unhidden.

This Tutorial Covers:

Regular Way of Hiding a Worksheet in Excel

You can use the below steps to hide a worksheet in Excel:

  • Right-click on the sheet tab that you want to hide.
  • Click on Hide.

This would instantly hide the worksheet, and you will not see it in the workbook. This setting remains intact when you save the workbook and reopen it again, or send it to some else.

PRO TIP: To hide multiple sheets at one go, hold the Control key and then select the sheet tabs (that you want to hide) one by one. Once selected, right-click on any one of the selected tabs and click on ‘Hide”. This will hide all the worksheets at one go.

While this method hides the worksheet, it’s extremely easy to unhide these worksheets as well.

Here are the steps to unhide a worksheet in Excel:

This will instantly make the sheet visible in the workbook.

Note that you can only unhide one sheet at a time. To unhide multiple sheets, you need to repeat the above steps to unhide each worksheet. Alternately, you can use a macro code to unhide all the worksheets at one go.

While this method works in most cases, it doesn’t really help if you want to hide the worksheets so that your client or colleague (or anyone with whom you share the workbook) can’t unhide and view these.

All they need to do is right-click on any of the tabs and they will see what all worksheets are hidden (and unhide these easily).

So let’s see how you can really hide a worksheet so that it can not be unhidden (at least not so easily).

Here are the steps to hide a worksheet so that it can not be unhidden:

Now you will notice that the sheet is hidden.

When you right-click on any of the tabs, you will not see it in the list of hidden sheets that you can unhide.

Is this method foolproof? – NO!

This method works as a user can not see the hidden sheet in the list of sheets that he/she can unhide.

But this doesn’t mean that the sheet can’t be unhidden.

Here are the steps to unhide a sheet that has been ‘Very Hidden’:

This will unhide the worksheet and it will be visible in the workbook.

Hide/Unhide Worksheets Using VBA

If you have a lot of worksheets that you need to hide/unhide, it can take up a lot of your time.

Using a simple VBA code can automate this task for you.

Hide All Worksheets Using VBA

Below is the VBA code that will hide all the worksheets except the current/active worksheet:

The above code would hide all the worksheet except the except the active sheet. However, it will hide it so that these can be unhidden easily (note that ws.Visible property is set to xlSheetHidden).

If you want to hide the sheets so that these can not be unhidden, use the below code:

The only change we have done here is making the ws.Visible property xlSheetVeryHidden.

Unhide All Worksheets Using VBA

Below is the code that will unhide all the hidden worksheets in the workbook.

Using this code, we simply go through each worksheet one by one and make the ws.Visible property equal to xlSheetVisible.

Where to put the code?

Below are the steps to place the code in the VB Editor:

Now you can assign the macro to a shape or run it from the Developer tab. You can read more about different ways to run a macro in Excel here.

Note that you don’t need to insert a new module for each code. You can have one single module and have multiple VBA macro codes in it.

You May Also Like the Following Excel Tutorials:

Источник

Как сделать лист очень скрытым

Иногда возникают ситуации, когда надо скрыть лист со всем его содержимым от посторонних любопытных глаз. Очень часто это делается из контекстного меню листа (для счастливых обладателей 2007 Excel. Подробнее: здесь). Но при использовании данного метода необходимо защитить книгу, иначе отобразить скрытые листы сможет каждый (тем же правым щелчком мыши — Отобразить). А что делать, если книгу не надо защищать? Ведь часто необходимо оставить пользователям возможность работы со структурой книги, например, добавлять листы. Как тогда скрыть лист так, чтобы его нельзя было отобразить? Есть достаточно простой способ через редактор VBA, при этом обладать навыком программирования вообще не нужно. Итак, определились какой лист надо скрыть. Далее:

  1. заходим в редактор VBA( Alt + F11 )
  2. жмем сочетание клавиш Ctrl + R или идем в меню ViewProject Explorer (чтобы отобразить окно объектов проекта VBA)
  3. жмем F4 или через ViewProperties Window (чтобы отобразить окно свойств)
  4. в левой части окна (в Project Explorer) ищем книгу, лист в которой надо скрыть и раскрываем её папку(на скрине это VBA Project (Книга1))
  5. раскрываем папку Microsoft Excel Objects и выделяем там лист с нужным именем
  6. в Окне свойств (Properties Window) находим свойство Visible и назначаем ему значение xlSheetVeryHidden

Чтобы затем отобразить этот лист необходимо свойству Visible задать значение — xlSheetVisible. При этом для отображения листа необходимо будет обязательно зайти в редактор VBA — простым методом отобразить не получится. И книгу защищать не надо. Что нам и было необходимо.
Для большей надежности можно защитить проект VBA, чтобы не было возможности отобразить лист из VBA, не указав пароль. На функционал это не повлияет совершенно.
В том же окне VBA( Alt + F11 ):

  1. ToolsVBAProject Properties -вкладка Protection
  2. для защиты устанавливается галочка «Lock project for viewing«; для разблокировки — снимается
  3. вписывается/удаляется сам пароль в полях Password и Confirm password.

Скрыть только определенные листы активной книги можно следующим кодом:

Sub Hide_Sheets() Dim ws, aSheets aSheets = Array(«Лист1», «Списки», «Лист2») ‘через запятую перечисляем листы для скрытия(обязательно в кавычках) For Each ws In aSheets ActiveWorkbook.Sheets(ws).Visible = xlSheetVeryHidden ‘отобразить – xlSheetVisible; сделать лист просто скрытым — xlSheetHidden Next wsSh End Sub

Как использовать: Для начала надо убедиться, что разрешены макросы и при необходимости включить их: почему не работает макрос. Затем копируем код выше, из Excel переходим в редактор VBA( Alt + F11 ) —InsertModule. Вставляем туда скопированный код. Теперь код можно вызывать нажатием клавиш Alt + F8 -выделяем Hide_SheetsВыполнить (Run) .
Скрыть все листы в активной книге, кроме листа с именем «Видимый», можно следующим кодом:

Sub Hide_All_Sheets() Dim wsSh As Object For Each wsSh In ActiveWorkbook.Sheets If wsSh.Name <> «Видимый» Then wsSh.Visible = xlSheetVeryHidden ‘отобразить – xlSheetVisible; сделать лист просто скрытым — xlSheetHidden Next wsSh End Sub

Скрыть абсолютно все листы не получится — Excel не позволит это сделать, т.к. в книге должен быть видимым хотя бы один лист.

Источник

How to Unhide Sheets in Excel (All In One Go)

Watch Video – How to Unhide All Sheets In Excel

In case you prefer reading a tutorial over watching a video, below is a detailed written tutorial on unhiding sheets in Excel.

When you work with data that is spread across multiple worksheets in Excel, you may want to hide a few worksheets. This could be to avoid the clutter or to not show some data to your client/manager by hiding some worksheets and only keeping the useful ones visible.

And in some cases, you may have a workbook that has some hidden sheets and you want to unhide some or all of these worksheets.

In this tutorial, I will show you some methods to unhide worksheets in Excel (manually as well as automatically using VBA). I will also show you how to selectively unhide worksheets based on the name or a condition.

So let’s get started!

This Tutorial Covers:

Unhiding Sheets Manually

If you only have a few worksheets that are hidden, you can manually unhide some or all of these worksheets.

Suppose you have an Excel workbook that has 10 worksheets that are hidden.

Below are the steps to manually unhide worksheets (one at a time):

  1. Right-click on any of the existing worksheet tab
  2. Click on the Unhide option. This will open the Unhide dialog box that lists all the hidden worksheets
  3. In the Unhide dialog box, click on the worksheet that you to unhide (you can only select one at a time).
  4. Click OK.

The above steps would unhide the select worksheet.

Note: Unfortunately, there is no in-built functionality in Excel to quickly unhide all the hidden worksheets (or a way to select more than one worksheet and unhide it). As of now, you need to use the unhide dialog box where you can only select one worksheet to unhide.

You can hide worksheets in bulk, but not unhide in bulk

If you want to hide worksheets, you can select multiple worksheets at once (hold the control key and click on the worksheet tab name), right-click and click on the Hide option.

Unfortunately, there is no in-built functionality in Excel to quickly unhide all the hidden worksheets (or a way to select more than one worksheet and unhide it). As of now, you need to use the unhide dialog box where you can only select one worksheet to unhide.

While there is no-inbuilt functionality to unhide in bulk, you can easily do this with a simple VBA macro code.

Unhide All Sheets At One Go

With VBA, you can easily unhide worksheets in bulk.

For example, if you have 10 hidden worksheets, you can create a simple VBA code to unhide all the worksheets or you can unhide based on a condition (such as unhide only those where there is a specific prefix or year in the name).

Note: The methods covered in this tutorial doesn’t require you to save an Excel workbook in a macro-enabled format (.XLSM) to use the VBA code.

Using Immediate Window

VB Editor in Excel has an immediate window where you can type a line of code and instantly execute it right away.

Below are the steps to use this above line of code to unhide sheets through immediate window:

  1. Right-click on any of the visible sheets in the workbook
  2. Click on View code. This will open the VB Editor.
  3. Click the View option in the menu and then click on the Immediate window. This will make the Immediate window appear in the VB Editor (if not there already).
  4. In the Immediate window, copy and paste the following line of code: For each Sheet in Thisworkbook.Sheets: Sheet.Visible=True: Next Sheet
  5. Place the cursor at the end of the line
  6. Hit the Enter key

The above steps would instantly unhide all the sheets in the workbook.

Once done, you can close the VB Editor.

Let me also quickly explain the below VBA code that we have used in the immediate window to unhide sheets:

The above code uses a For Next VBA loop to go through all the sheets in the workbook and set the visible property to TRUE. Once the visible property of all the sheets is changed, the code will end.

The colon (:) used in the code above is equivalent to a line break. While it looks like a single line of code, it has three parts to it which are separated by two colons.

If you’re interested in learning more about the immediate window and some awesome things you can do with it, here is a detailed tutorial about it.

By Adding Macro to QAT (with One Click)

In case you have to unhide worksheets quite often, another good way could be to have the macro code to unhide sheets in the Personal macro workbook and save the icon in the Quick Access Toolbar.

This is just a one time process and once you have it done, you can then unhide sheets in any workbook by simply clicking on a button in the QAT.

This is by far the most efficient way to unhide sheets in Excel (most useful when you get a lot of workbooks with hidden sheets and you have to unhide these).

The trick here is to save the code to unhide sheets in the Personal Macro Workbook.

A Personal Macro Workbook is something that is always open when you open any Excel file (you can’t see it though). When you save a macro code to the Personal Macro workbook, this code is now always available to you. And when you add this to the QAT and you run the macro code with a single click.

Below is the code that you need to add to the Personal Macro Workbook:

Below are the steps to add this code to the Personal Macro Workbook:

  1. Click on the record macro button (it’s at the bottom left of the Excel workbook application)
  2. In the Record Macro dialog box, change the Store macro in setting to – Personal Macro Workbook.
  3. Click OK. This will start recording the macro
  4. Click on the Stop macro recording icon (at the bottom left of the workbook). This will stop the macro recording
  5. Right-click on any sheet tab and then click on ‘View Code’
  6. In the VB Editor, double-click on the Module object in the Personal.XLSB workbook
  7. Remove any existing code and copy and paste the above code.
  8. Click the Save icon in the toolbar
  9. Close the Vb Editor

The above steps allow you to make the Personal Macro Workbook visible in the VB Editor and place the code to unhide sheets in it.

Now all you need to do is add this code to the Quick Access Toolbar so that you can use it anytime from any workbook.

Below are the steps to add this code to the Quick Access Toolbar:

  1. Click on the Customize Quick Access Toolbar icon.
  2. Click on More Commands.
  3. In the Excel Options dialog box, click on the ‘Choose Commands from’ drop-down
  4. Click on Macros. This will show you a list of all the macros in the workbook (including the ones in PERSONAL.XLSB)
  5. Select the macro code to unhide sheets
  6. Click on the Add button
  7. Click OK.

The above steps would add this macro code to unhide sheets in the Quick Access Toolbar.

Now, whenever you get a workbook that has some sheets hidden, you just need to click on the code icon in the QAT and it will instantly unhide all sheets in one go.

Unhide Sheets With Specific Text in the Name

With VBA, you can also unhide sheets based on the name.

For example, suppose you have a workbook that contains sheets with years in the name and you want to unhide all the ones where the year is 2020.

You can use the below code to unhide all the sheets with the text 2020 in it:

The above uses the For Next loop to go through each worksheet in the workbook. The IF Then condition then checks the name of the worksheet and if it contains the specified text (which is 2020 in this code), it will change the visible property to make it visible.

And if the name doesn’t contain the specified text, it will leave it as is.

You can also modify this code to hide sheets based on the text in the name.

For example, if you want to quickly hide all the worksheets where the name contains the text ‘2020’ in it, you can use the below code:

Note: You can save this code in a regular module inside VB Editor or you can save this in the Personal Macro Workbook. In case you save it in a regular module and need to use it again later, you need to save the workbook as a macro-enabled workbook (.XLSM format).

Unhide Selected Sheets (Based on User Selection)

You can also use VBA to give the user the flexibility to choose whether to unhide a sheet or not.

This can be done by showing a message box that asks the user to select whether to unhide a sheet or not. If selected, it unhides that sheet, else it moves to the next one.

Below is the code that will do this:

The above code goes through each sheet in the workbook and checks whether it’s already visible or not. If it’s hidden, then it shows the message box with the name of the worksheet.

As a user, you can now decide whether you want to keep this sheet hidden or unhide it.

This can work well if you have some worksheets that are hidden and you want to take a call for every sheet individually.

Note: You can save this code in a regular module inside VB Editor or you can save this in the Personal Macro Workbook. In case you save it in a regular module and need to use it again later, you need to save the workbook as a macro-enabled workbook (.XLSM format).

Here is a tutorial where I show how to save the code in the regular module in Excel (search for the ‘Where to put this code’ section in this article)

Unhide All or Selected Sheets Using Custom View

This is a less known method in case you want to quickly unhide all the worksheets (or some selected worksheets).

‘Custom View’ is functionality in Excel that allows you to create and save views that you can quickly resort to with a click of a button.

For example, suppose you have an Excel workbook with 10 worksheets. You can create a view where all these 10 sheets are visible. In the future, if you have some sheets hidden and you want o go back to the view where all the sheets were visible, you can do that by selecting the already saved custom view.

Don’t worry, you don’t lose any changes you made after creating the custom view. All custom view does is takes you back to the Excel view when you created it. So if some worksheets were visible when you created the view and are now hidden, selecting that custom view would unhide these sheets.

The intended use of Custom View is to allow users to create different views. For example, if you’re an analyst, you can create different views for different departments in your organization. So you can have a specific set of worksheets (or cells/rows/columns) visible for one department and another set for another department. Once you have these views, instead of changing this manually, you simply activate the view for a department and it will show you worksheets (or rows/columns) relevant for them only.

Below are the steps to create a custom view in Excel:

  1. Unhide all the worksheets to begin with
  2. Click the View tab
  3. Click on Custom Views
  4. In the Custom Views dialog box, click on Add. This will open the Add view dialog box
  5. Enter any name for this view where all the sheets (or selected sheets) are visible
  6. Click OK.

Once the view is created, you can anytime ask Excel to activate this view (which would make all those sheets visible that were visible when you created the view).

Below are the steps to show/activate a custom view:

  1. Click the View tab
  2. Click on Custom Views
  3. In the Custom Views dialog box, select the view that you want to show
  4. Click on Show button

This would instantly unhide sheets and show those that were visible when you created that custom view.

Sometimes, despite having some hidden sheets in your workbook, you would not be able to unhide it manually.

This could be because these sheets are not just hidden – these are ‘very hidden’.

When you have hidden sheets in a workbook and you right-click on any tab name, you would see the option to ‘Unhide’ sheets. But if you have sheets are ‘very hidden’ or if there are no hidden sheets, then you would not be able to use this option (it will be greyed out).

You can still unhide these ‘very hidden’ sheets by using the VBA code that we have covered above.

Just copy-paste the below code in the immediate window and hit enter and it would instantly unhide all the sheets (hidden as well as very hidden).

I also have a full tutorial on how to hide sheets and make these very hidden (in case you’re interested in learning)

You may also like the following Excel tutorials:

Источник

Понравилась статья? Поделить с друзьями:
  • Excel all in one for dummies
  • Excel all formulas to values
  • Excel all cells in one column
  • Excel airide compact кресло коляска с электроприводом
  • Excel aggregate на русском