Bagaimana cara hide dan unhide di Excel?

Skip to content

Bagaimana cara hide dan unhide di Excel?

  • Tutorials
  • Online Courses
  • For Business
  • Resources
  • About Me
  • Log in
  • Tutorials
  • Online Courses
  • For Business
  • Resources
  • About Me
  • Log in

3 Methods to

Unhide All Sheets in Excel

(& how to hide)

How can you unhide all Excel sheets at once?

Hiding many worksheets at once is easy in Excel.  Click on a sheet, hold down the control or the shift key, click on the other sheets you’d like to hide, right-mouse click and select “Hide”.

What if you wanted to unhide all the sheets in one go?

Find out 3 methods you can use to unhide all sheets at once.

UPDATE 2021: Good news! If you have Office 365 you can now unhide multiple sheets at once!

If you don’t have Office 365, continue reading.

Bagaimana cara hide dan unhide di Excel?

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”.

Bagaimana cara hide dan unhide di Excel?

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

Bagaimana cara hide dan unhide di Excel?

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.

Bagaimana cara hide dan unhide di Excel?

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.

Bagaimana cara hide dan unhide di Excel?

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.

Bagaimana cara hide dan unhide di Excel?

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”.

Bagaimana cara hide dan unhide di Excel?

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.

Bagaimana cara hide dan unhide di Excel?

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.

Bagaimana cara hide dan unhide di Excel?

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).

Bagaimana cara hide dan unhide di Excel?

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

Bagaimana cara hide dan unhide di Excel?

(press Enter)

All the sheets have returned to a visible state.

Bagaimana cara hide dan unhide di Excel?

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.
    Bagaimana cara hide dan unhide di 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”.
    Bagaimana cara hide dan unhide di Excel?
  4. Click OK
  5. Click the “Stop Recording” button on the Status Bar in the lower-left corner of Excel.
    Bagaimana cara hide dan unhide di 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”.
    Bagaimana cara hide dan unhide di Excel?
  10. Highlight and delete EVERYHTING in the code window (right panel).
    Bagaimana cara hide dan unhide di Excel?
  11. Enter the following code:
Sub Unhide_All()
Dim sh As Worksheet

	for each sh in worksheets: sh.visible=true: next sh

End Sub

Bagaimana cara hide dan unhide di Excel?

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.
    Bagaimana cara hide dan unhide di Excel?
  2. In the dropdown titled “Choose commands from:” select “Macros”.
    Bagaimana cara hide dan unhide di Excel?
  3. Select the “Unhide_All” macro on the left and click “Add>>” to move the macro to the list on the right.
    Bagaimana cara hide dan unhide di Excel?
  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.
    Bagaimana cara hide dan unhide di Excel?
  5. Click OK.

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

Bagaimana cara hide dan unhide di Excel?

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.

Bagaimana cara hide dan unhide di Excel?

Additional Resources

Free Excel Tool:

Unhide Worksheet Utility

(select sheets to unhide)

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.

Bagaimana cara hide dan unhide di Excel?

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

Please visit Daniel’s page at:

http://www.comboprojects.com.au/unhide-worksheets-excel/

Learn Excel from a Microsoft MVP

Check out my bestselling Excel Courses

Learn anytime that fits your schedule.

Download files. Practice. Apply.

9 Comments

  1. GS April 21, 2019 at 10:38 pm

    Nice work. Thank you very much indeed for sharing.

  2. Kathy September 10, 2019 at 3:55 pm

    I use unhide and hide all the time. Thank you this is very helpful.

  3. suresh October 3, 2019 at 9:13 am

    Thanks a lot. It is very useful

  4. Borys October 18, 2019 at 8:42 pm

  5. Nilesh Mojidra October 31, 2019 at 2:52 pm

    Thanks a lot. This is very useful and saved me lots of time.

  6. Charles` November 6, 2019 at 4:04 pm

    Leila,
    Words can’t express how great full I am for this wonderful function.
    Been struggling to unhide a couple of worksheets manually now am sure this will make my work faster.
    God bless for the work of your hands

  7. Ric December 2, 2019 at 10:18 pm

  8. Chari December 8, 2019 at 5:25 pm

    Fantastic. Worked like a charm.

  9. Avinash January 7, 2020 at 8:16 am

    Awesome presentation. Thanks for sharing.

Comments are closed.

Bagaimana cara unhide di Excel?

Memunculkan lembar kerja.
Klik kanan pada tab apa pun yang terlihat..
Pilih Munculkan..
Tandai tab untuk di munculkan..
Klik OK..

Bagaimana cara unhide kolom A di Excel?

Untuk memunculkan kolom A, klik kanan header atau label kolom B dan pilih Munculkan Kolom.

Hide itu Ctrl apa?

Seleksi terlebih dahulu kolom yang ingin disembunyikan dan gunakan pintasan keyboard Ctrl+0.

Bagaimana cara memunculkan sheet di Excel?

Untuk memunculkan lembar kerja, klik kanan tab yang terlihat, kemudian klik Munculkan. Dalam kotak dialog Munculkan, klik lembar yang ingin dimunculkan, kemudian klik OK.