+ Reply to Thread
Results 1 to 7 of 7

How to hide and unhide sheets with a password

  1. #1
    Registered User
    Join Date
    05-11-2015
    Location
    melbourne
    MS-Off Ver
    2010
    Posts
    38

    How to hide and unhide sheets with a password

    I have the below formula which uses a password to allow worksheets to be hidden and unhidden. I cant seem to get it to hide and unhide more than one sheet. It will only hide "SES MAIN". I have typed the names exactly as on the work sheets. Am I missing something?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: How to hide and unhide sheets with a password

    How many sheets are there? You must always have one sheet visible.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-11-2015
    Location
    melbourne
    MS-Off Ver
    2010
    Posts
    38

    Re: How to hide and unhide sheets with a password

    There are 52 sheets so there will still be many visible sheets.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: How to hide and unhide sheets with a password

    Comment out the On Error Resume Next and see if you get an error. If you get subscript out of range, there is an issue. Maybe leading or trailing space(s)

  5. #5
    Registered User
    Join Date
    05-11-2015
    Location
    melbourne
    MS-Off Ver
    2010
    Posts
    38

    Re: How to hide and unhide sheets with a password

    Yes I get the error.

    I tried replacing the worksheet names for the worksheet numbers but now it only hides the other sheet "JES Software" . I'm puzzled.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: How to hide and unhide sheets with a password

    Suggest you post a sample workbook. It can be (a copy of) the real thing with all the data deleted. Only need to see the sheets/structure.

  7. #7
    Registered User
    Join Date
    05-11-2015
    Location
    melbourne
    MS-Off Ver
    2010
    Posts
    38

    Re: How to hide and unhide sheets with a password

    I have created a very basic example with just three pages.
    test hide-unhide.xlsm

+ 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 and unhide sheets with a password
    By Saturn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2016, 09:59 AM
  2. Inputbox with password to hide/unhide specific sheets in workbook.
    By Tona in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2015, 07:41 AM
  3. Hide all sheets (very hidden) except one or Unhide all sheets with password
    By wmdriver in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2015, 07:21 AM
  4. Hide Selected Sheets And No Unhide Without Entering Password
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-19-2014, 11:53 PM
  5. Switchboard in Excel. Password to hide and unhide sheets. User form hangs
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-21-2011, 06:27 PM
  6. hide / unhide separate sheets based on password
    By spudinsane in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-27-2011, 04:48 AM
  7. vba to hide / unhide separate sheets based on password (bis)
    By sigeg in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2011, 05:23 PM

Tags for this Thread

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