+ Reply to Thread
Results 1 to 2 of 2

Password Protecting Hidden Sheet

  1. #1
    Registered User
    Join Date
    08-09-2011
    Location
    Bay Village, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    55

    Password Protecting Hidden Sheet

    I know how to password protect the contents of a sheet, but I'd like to hide it so that others cannot unhide it without a password. Is this a doable thing? Many thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Password Protecting Hidden Sheet

    When you hide the sheet, it must be done with VBA and use the VeryHidden parameter, this way it cannot be manually unhidden, it can only be unhidden with VBA.

    My favorite way is to use a Worksheet_Deactivate() event in the sheet module of for all the sheets I want to be well hidden. When you are on the sheet and the step away to another sheet, it hides itself:
    Please Login or Register  to view this content.
    This code is in the Sheet2 and Sheet3 modules of the attached workbook.

    Then on sheet1 are some buttons for accessing those hidden sheets. This is a simple password check.
    Please Login or Register  to view this content.
    Just a tip, in your real-workbook, do not put the actual name of the sheet on the button.

    Also, be sure to protect the VBA project with a password as well, else someone can view the code to read the passwords.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Password Protecting Sheet
    By nickhunt in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-15-2014, 10:00 AM
  2. Protecting sheet password
    By John Cruz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2014, 01:29 AM
  3. [SOLVED] Password Protecting a Hidden Sheet
    By JRose0303 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-25-2014, 12:30 PM
  4. Locking cells and password protecting sheet
    By jax_webs in forum Excel General
    Replies: 5
    Last Post: 11-19-2012, 09:01 AM
  5. Protecting sheet with password on close
    By a94andwi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-24-2007, 08:11 PM
  6. Protecting a sheet with a password using VBA code
    By cgi_pro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2006, 05:16 AM
  7. [SOLVED] Sheet Protecting password
    By Nick in forum Excel General
    Replies: 1
    Last Post: 06-29-2005, 08:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1