+ Reply to Thread
Results 1 to 5 of 5

Userform to enter password to unhide very hidden sheet

  1. #1
    Registered User
    Join Date
    03-30-2016
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    93

    Userform to enter password to unhide very hidden sheet

    Hi,

    I have a sheet in a workbook (named 'Leader') which is veryhidden.

    I have a user form (named 'frm1') where the password (for testing purposes the password is 'MyPassword') can be entered but it shows in the box as asterixs'

    I've been reviewing previous posts and searching the net for suggestions of how to write the vba for such an event but I've come up empty handed and I'm getting more and more confused.

    I'd be very appreciative of anyone who can suggest a code that would allow me to set the userform so that it unhides the worksheet 'Leader', and also gives a message box if the wrong password is entered.

    Sorry for the lack of code and thanks in advance for any help provided.

    Regards.
    Last edited by dori2o; 01-24-2018 at 06:25 PM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Userform to enter password to unhide very hidden sheet

    so are you looking for the VBA to unhide a very hidden sheet? if so this (change it to your requirements) but I don't know if a userform has any effect on it.

    HTML Code: 
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    03-30-2016
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    93

    Re: Userform to enter password to unhide very hidden sheet

    Thanks for the replies.

    I've managed to work it out with the following code.

    it's not the prettiest but it works


    Command button (cmdbtn1) is on the 'Homepage'

    Please Login or Register  to view this content.
    with the 'Leader' macro simply unhiding the 'Leader' page and hiding the active sheet.

    I then have a button on the 'Leader' page to make the 'Leader' sheet xlveryhidden and to unhide the 'Homepage'


    Thanks for all the help given

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Userform to enter password to unhide very hidden sheet

    You’re welcome AND thanks for the rep!

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Userform to enter password to unhide very hidden sheet

    Quote Originally Posted by dori2o View Post
    I've managed to work it out with the following code.
    How secure does this have to be?

    Is your VBA project also password-protected? If not, a user can simply read the code to see the password. Even easier, a user can go to the VBA development window and make the sheet visible.

    In general, Excel security features are only effective against compliant users. A compliant user is someone who sees a prompt for a password and will say, "Oh, I don't know the password so I am not authorized to see this." A malicious user who says, "I want to see this even if I'm not authorized" will always find a way, and it's not that hard.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Replies: 11
    Last Post: 10-01-2017, 09:46 AM
  2. [SOLVED] Unhide hidden Workbooks in a specific directory by password
    By egemencoskun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-27-2014, 11:19 AM
  3. [SOLVED] COmmand button requiring password, if password ok, unhide sheet.
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-04-2012, 09:43 AM
  4. Split data into multiple sheets and to be hidden and password protected to unhide
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-30-2012, 11:36 PM
  5. Unhide hidden sheet?
    By evek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2010, 03:41 PM
  6. Userform password to unhide the worksheet
    By ABSTRAKTUS in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 08-26-2010, 06:54 AM
  7. different password to unhide the hidden sheets.
    By Rahul Nagar in forum Excel General
    Replies: 6
    Last Post: 11-24-2008, 01:56 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