+ Reply to Thread
Results 1 to 4 of 4

Password Protect Individual Tabs

  1. #1
    Registered User
    Join Date
    12-07-2014
    Location
    Hampshire, England
    MS-Off Ver
    Professional 2010
    Posts
    3

    Password Protect Individual Tabs

    I have a spreadsheet with a list of departments and when their department is selected using the tick box on the master sheet, a sheet is unhidden to show the details relating to that department.

    I need to password protect the tick box so that only those in that department are able to unhide the tabs.

    The current coding is using very hidden.

    I also need an administrators password so that if this is entered then all of the tabs will be unhidden.

    Is this possible?

    Many thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: Password Protect Individual Tabs

    I think that this is a good start. You will have to set each password for each tab and then use the Case Select to determine which password is used to unhide each worksheet.

    http://www.vbaexpress.com/kb/getarticle.php?kb_id=380
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    12-07-2014
    Location
    Hampshire, England
    MS-Off Ver
    Professional 2010
    Posts
    3

    Re: Password Protect Individual Tabs

    Hi Alan

    Thank you for your help.

    I have used the spreadsheet in your link as a basis as this seemed like exactly what I needed. I have another question which I would be grateful if you could help me with and I have included this below.

    Many thanks

    Helen
    Last edited by CROWBLE; 12-10-2014 at 05:27 PM.

  4. #4
    Registered User
    Join Date
    12-07-2014
    Location
    Hampshire, England
    MS-Off Ver
    Professional 2010
    Posts
    3

    Re: Password Protect Individual Tabs

    I have managed to find this code which automatically hides all tabs apart from the main tab on closing. However, I cannot get this to run automatically, I have to run the macro. What do I need to change to get this to do that as it defeats the purpose at the moment.

    Sub Auto_close()
    Dim wsSheet As Worksheet
    Dim wsLocked As Worksheet
    Application.ScreenUpdating = False
    Set wsLocked = Worksheets("Department Selector")
    wsLocked.Visible = xlSheetVisible
    For Each wsSheet In ThisWorkbook.Worksheets
    If Not wsSheet.Name = wsLocked.Name Then wsSheet.Visible = xlSheetVeryHidden
    Next wsSheet
    ActiveWorkbook.Save
    Application.ScreenUpdating = True
    End Sub



    Many thanks

    Helen

+ 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. Password Protect Individual Worksheets
    By Shytott in forum Excel General
    Replies: 3
    Last Post: 09-12-2012, 04:44 AM
  2. Password Protect Individual Sheets
    By SAsplin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2009, 08:13 AM
  3. Protect Individual Tabs Uniquely
    By rshirk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-21-2005, 08:36 AM
  4. [SOLVED] password protect individual worksheets
    By Nick in forum Excel General
    Replies: 3
    Last Post: 06-28-2005, 12:05 PM
  5. Password protect individual cell
    By JimmyB in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2005, 12:15 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