TechRepublic : A ZDNet Tech Community

Microsoft Office

Host: Susan Harkins
Contact

You can hide an Excel sheet, but users can unhide it just as quickly. If you want a more securely hidden sheet, hide it in the Visual Basic Editor (VBE). Fortunately, the technique is simple for you — and users won’t suspect a thing.

First, let’s look at the traditional method for hiding a sheet:

  1. Open a new workbook.
  2. Click Sheet2’s tab to select it.
  3. From the Format menu, choose Sheet.
  4. From the resulting submenu, choose Hide. Excel hides Sheeet2 and its tab.

To unhide Sheet2, you’d choose Sheet from the Format menu and select Unhide. Then, you’d select Sheet2 in the Unhide dialog box and click OK. (For now, don’t unhide Sheet2.) Even users with just a little experience might find this dialog box and unhide a sheet.

Excel has a more secure setting known as “very hidden.” A very hidden worksheet can’t be unhidden using the Excel user interface because it doesn’t appear in the Unhide dialog box. The average user won’t even know the sheet exists, let alone know how to unhide it. You’ll need the VBE to apply this property as follows:

  1. Switch to Excel’s VBE (press [Alt]+[F11]).
  2. In the Project Explorer, select the sheet you want to hide. This time, hide Sheet3.
  3. In the Properties window, select 2 - xlSheetVeryHidden from the Visible property’s drop-down list. When you do, Excel applies the property and then selects the first sheet, Sheet1, which is a bit distracting. That behavior is normal, so don’t let it bother you.

When you return to Excel, Sheet3 isn’t visible. Nor does Excel list Sheet3 in the Unhide dialog box. In fact, Excel dims the Unhide command if the only sheets hidden are very hidden sheets. Sheet2 is visible because (earlier) we used the Hide command from the Format menu to hide it.

The result is a very stealthy sheet, but it’s still vulnerable to savvy users who know the technique. To unhide Sheet3, return to the VBE and choose -1 – xlSheetVisible. (That’s a negative 1, which denotes the constant’s value.)

Print/View all Posts Comments on this blog

Not so hidden basil.cinnamon | 08/12/09
Hide columns and password protect worksheet victor.gutzler@... | 08/12/09
Use Protection!! daniel@... | 08/12/09
general rocksmth04 | 08/12/09
Unhide a worksheet. doncobb@... | 08/12/09
Unhiding the hidden sheet nicefred60@... | 08/12/09
RE: Hide Excel sheets - really hide them Rande | 08/12/09
RE: Hide Excel sheets - really hide them Lewis.Athow@... | 08/12/09
It works in 2003 ssharkins@... | 08/12/09
Definitely works in 2003 b.krisanski@... | 08/12/09
RE: Hide Excel sheets - really hide them AK Norm | 08/12/09
Unhide very hidden with a macro stevenc.atkins@... | 08/12/09
No use if password protected haytekph@... | 08/13/09
RE: Hide Excel sheets - really hide them mistercrowley | 08/12/09
RE: Hide Excel sheets - really hide them J.Felland | 08/12/09
An easier way . . . skiddo24 | 08/12/09
Hide the Project boffin-98713@... | 08/12/09
RE: Hide Excel sheets - really hide them Paul90 | 08/13/09
Hide Excel Sheets - Perfect Timing! melissatutors@... | 08/14/09
Just a suggestion ssharkins@... | 08/16/09
RE: Hide Excel sheets - really hide them john.caulfield@... | 08/17/09

What do you think?

White Papers, Webcasts, and Downloads

Recent Entries

TR on Twitter

Archives

TechRepublic Blogs



500 Things Every Technology Professional Needs to Know
Did you know Microsoft's RegClean does not work with XP but you can use shareware to clean your registry? Did you know most wireless access points don't have encryption enabled by default? Did you know there are 500 tidbits of information contained in TechRepublic's 500 Things Every Technology Professional Needs to Know that will help you become a successful IT professional.
Buy Now
Quick Reference: Linux Commands
Reduce stress and speed up resolutions with the easiest command references right at your fingertips. You'll receive a PDF file covering Linux, packed with the most common commands you'll need and use daily.
Buy Now

Popular Sanity Saver Videos