+ Reply to Thread
Results 1 to 7 of 7

How to hide PW protected tab on the excel sheet

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Luterbach
    MS-Off Ver
    MS office 2013
    Posts
    55

    How to hide PW protected tab on the excel sheet

    Edited by FlameRetired Added code tags.

    I have below VBA, which PW protecting one of the sheets. What I need to change on my VBA to be able to hide this tab "##"

    Please Login or Register  to view this content.

    Thank you
    Last edited by FlameRetired; 02-06-2019 at 09:20 PM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,945

    Re: How to hide PW protected tab on the excel sheet

    The problem with your code is that if the entered response is incorrect, then there is no way to re-select the sheet to re-initiate the PassWord entry. You might want to use code on an always-visible worksheet assigned to a button "Unhide Sheet ##" and use code like

    Please Login or Register  to view this content.

    You can always use the before close event to fire code to hide any sheet that should be opened using a password.

    Please Login or Register  to view this content.
    Last edited by Bernie Deitrick; 02-06-2019 at 05:54 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to hide PW protected tab on the excel sheet

    Altamija please read our forum rules regarding code tags.

    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 6)

    Since you are relatively new to the forum I went ahead and added them for you.
    Dave

  4. #4
    Registered User
    Join Date
    11-17-2015
    Location
    Luterbach
    MS-Off Ver
    MS office 2013
    Posts
    55

    Re: How to hide PW protected tab on the excel sheet

    Dave ,
    I sincerely apologize for this error.
    Last edited by Altamija; 02-07-2019 at 10:28 AM.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: How to hide PW protected tab on the excel sheet

    No harm, no foul.

  6. #6
    Registered User
    Join Date
    11-17-2015
    Location
    Luterbach
    MS-Off Ver
    MS office 2013
    Posts
    55

    Re: How to hide PW protected tab on the excel sheet

    Thank you Bernie, Combination of this two codes works perfectly !! Thanks again .

  7. #7
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: How to hide PW protected tab on the excel sheet

    Quote Originally Posted by Bernie Deitrick View Post
    Please Login or Register  to view this content.
    If you are using VBA to hide/show sheets, I suggest:

    Please Login or Register  to view this content.
    FALSE is still visible to 'unhide' under right mouse click, set as 2 does not exist for 'unhide' by right click and can be shown only via VBA.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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] Hide rows in a protected sheet.
    By Mark Dynes in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2017, 04:13 AM
  2. Hide/Unhide cells on protected sheet
    By snuffnchess in forum Excel General
    Replies: 1
    Last Post: 10-17-2015, 03:54 PM
  3. [SOLVED] VBA Hide/Unhide Rows when Sheet protected
    By Kinez101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2012, 01:34 PM
  4. Replies: 7
    Last Post: 01-24-2011, 03:13 AM
  5. Hide rows on a protected sheet with macro
    By darthshani in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2009, 03:40 AM
  6. Macro to hide rows-sheet is being protected
    By Alex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2005, 03:15 PM
  7. [SOLVED] how to hide rows in a protected sheet
    By Prakash in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-18-2005, 11:06 AM

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