How To Hide an Excel Worksheet

Some time we want to hide a certain Excel Worksheet from view, and it’s a common practice to use select the Worksheet, go to menu Format > Sheet > Hide.

Using the method explained above is right, but unfortunately, others people can easily unhide the Worksheet using the same method, only this time, instead of selecting Hide, they simply need to choose UnHide, and all the Worksheets in hiding will be revealed.

The above method only working in Microsoft Excel before 2007, in Excel 2007, the menu to hide and unhide columns/cells/worksheets are hidden by default, but we can add this menu into Excel Quick Access Toolbar (tiny menu at top left corner of the window), by accessing menu Customize Quick Access Toolbar (tiny down arrow on the right), select More Commands… » Choose commands from Home Tab » and select menu Hide & Unhide.

Customize Quick Access Toolbar

Hide and Unhide Menu

The other method on how to hide our Excel Worksheet, more secured, and not really well known by people is using Worksheet xlSheetVeryHidden properties.

To perform this method, first we need to go to Microsoft Visual Basic Editor (ALT+F11), in the project explorer (if the explorer is not showing, click CTRL+R), select Worksheet that we want to hide, then go to Properties Windows (F4), and in the Visible properties, select 2 – xlSheetVeryHidden like in this picture:

hide excel worksheet

If we follow all the guide above, the Worksheet will be disappear/hidden from view, even when we use menu Format > Sheet > UnHide, the Worksheet will not be displayed in the list of Worksheets in hiding.

We can also get the same result using Excel VBA macro, like this:

Private Sub Workbook_Open()
    Worksheets("Sheet1").Visible = xlSheetVeryHidden
End Sub

With a simple one line of code, Sheet1 will automatically set to VeryHidden each time the Excel Workbook was opened. Change “Sheet1″ with your Worksheet name.

FIN

This entry was posted in Workbook and Worksheet and tagged , , , , , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

7 Responses to How To Hide an Excel Worksheet

  1. Amey says:

    Hi,

    I have few hidden worksheets using VBA code [Worksheets("Sheet1").Visible = xlSheetVeryHidden].

    however, i want to see those or open those hidden worksheets when i am in certain tabs or through certain tabs. What code i should use for the same?

    For example, I have hidden Sheet1.A. and want to see only, when i am inside Sheet1.

    Many thanks…Amey

  2. Pingback: reverse mortgage problems

  3. Pingback: reverse mortgage loans

  4. Pingback: Asbestos Lawyers

  5. Pingback: video x

  6. Pingback: facebook emoticons list

  7. Pingback: Alternative Energy Projects

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>