Excel 2010/2013: Hiding a worksheet while disabling the Unhide command

Printer-friendly versionPrinter-friendly versionSend by emailSend by emailPDF versionPDF version

When you are working with an Excel workbook, you might find it essential to hide worksheets. This is very useful when a worksheet contains a standard set of data or static data or those data that does not change so frequently. One example is a price table of goods or merchandise, hourly rate of workers, and others that you want it protected from an unwanted and accidental editing.

hiding worksheets

The normal or default way of hiding worksheets is to right click on the Sheet that you want to hide , in the context menu that appears, click on Hide. The right clicked sheet will be hidden from view.

hiding sheets in Excel 2010

However, even though the hidden sheet is no longer shown in the sheet tab, when the user right click on the worksheet tab, there is a command Unhide. Clicking on this command will give you a message box showing the worksheets that are hidden. There you can unhide the hidden worksheets.

unhide sheets

If the data in the hidden sheets are confidential or critical, you might need to hide the worksheets but then, the Unhide button shall be unavailable so that people cannot easily Unhide sheets that you do not want to share with them.

The best and easy approach to this problem is through setting the sheet properties to "xlSheetVeryHidden". Here are the steps:

  1. Open the Excel file
  2. Right click on the sheet that you want to hide
  3. Then click on View Code
  4. Here is my screen shot:
    View code
  5. In the VBA window that appears, locate and click on the "Properties" button to display the Properties window. Here is my screen shot:

  6. When you see that Properties box, click on the Sheet that you want to hide and the Properties box will display the Properties of the selected sheet
  7. Then at the bottom property called Visible, select the option "2 - xlSheetVeryHidden"
  8. Here is my screen shot:
  9. NOTE: When you selected Sheet 2 and set the Visible property to 2 - xlSheetVeryHidden, the selection will not remain in place because other sheets will then show up. That is, after you are done with Sheet 2, Sheet 3 will be selected so it may appear to you that your settings were gone. Select back Sheet 2 and see if the settings (VeryHidden settings) are there.
  10. Then click File => Close and return to Excel
  11. There you shall see that the sheets are hidden but when you right click, there is no UNHIDE command available.
  12. To undo this in your case? Just redo the process and set the Visible property back to Visible.
MS Office Software: