+ Reply to Thread
Results 1 to 9 of 9

Protect/Hide worksheet tabs by password

  1. #1
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Protect/Hide worksheet tabs by password

    Hi all,

    I have a spreadsheet that holds information that is sensitive/cannot be shared with anyone outside of the originating department.

    The sheet comprises of 5 tabs, each fed from the master data tab. One of the 5 tabs holds no sensitive data but needs to be shared with another department.

    What I'm looking for is a way to be able to share the file, but without the risk of the sensitive data being compromised/viewed by those unauthorised to see it.

    Currently getting around this by just extracting the tab from the file to a new file, and saving as values, but that has its own risks for the accuracy of the data being shared with the other dept.

    Any help much appreciated.

    Thanks
    seash

  2. #2
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Protect/Hide worksheet tabs by password

    put this in the workbook --> sheetactivate module.

    Change "yourpassword" to a password of your choice and the the sheet name references.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Re: Protect/Hide worksheet tabs by password

    Hi there,

    Thanks for this.

    Not sure if I am entering/following this correctly, getting some error messages.

    Could you help at all?

    Thnaks
    seash

  4. #4
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Protect/Hide worksheet tabs by password

    Hi Seash,

    apologies for not getting back to you sooner, been a bit hectic in my day job. What messages are you getting? also what version of MSExcel are you using?

  5. #5
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Re: Protect/Hide worksheet tabs by password

    Doc1.docx

    Hi there,

    Thanks for your reply.

    I have attached a screenshot of how I have entered the code to my workbook.

    Is this correct as I cannot seem to be able to make this operate?

    I know that I need to change the name of the sheet I want to hide (entered as sheet 3 in here).

    Thanks
    Seash

  6. #6
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Re: Protect/Hide worksheet tabs by password

    Using Excel 2010

  7. #7
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Protect/Hide worksheet tabs by password

    Just be aware that Excel isn't secure and this security is trivial to remove. It's really just there to create an illusion of security rather than providing it - if you are happy that casual users cannot stumble onto the data then this is sufficient. If you are not, then you really need to use another application

  8. #8
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Re: Protect/Hide worksheet tabs by password

    Hi Kyle123,

    Thanks for your input, we are aware of that, but the illusion in this case will be sufficient for the purpose required here.

    Any ideas on the main issue presented here?

    Thanks
    Seash

  9. #9
    Forum Contributor
    Join Date
    07-16-2014
    Location
    Yorkshire
    MS-Off Ver
    MS 10
    Posts
    100

    Re: Protect/Hide worksheet tabs by password

    Kramxel,

    The error message states: (in the VBA window)

    Compile Error:

    Expected: identifier

    Thanks
    Seash

+ 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 Password Protect a Worksheet(s)
    By gjtbackwards in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2014, 04:42 PM
  2. Replies: 2
    Last Post: 01-17-2013, 08:39 AM
  3. VBA to Unprotect (w/ password), Unhide, Hide, and Protect (w/ password)
    By pger34 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-14-2012, 12:35 PM
  4. Hide specific tabs and password protect
    By dawnmau in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2010, 12:23 PM
  5. hide a column in a worksheet and password protect
    By eoreality in forum Excel General
    Replies: 1
    Last Post: 02-07-2006, 10:45 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