+ Reply to Thread
Results 1 to 3 of 3

Different Worksheet Passwords

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Different Worksheet Passwords

    Hi

    I am relatively new to VBA and Programming code which is why i'm wondering if someone could point us in the right direction. Here is the issue

    I have 12 worksheets each which have to be protected from other people from viewing unless you enter the password correctly for that worksheet. I then have a main page(Called Home) with 12 Macros on with people's names. When the person clicks on their name it then leads them to their worksheet (the password protected one).

    Any ideas on how to go about it and the code needed to make this work? All the sheets and names are in place its just the coding that i'm not sure how to do.

    Any help would be appreciated and bear in mind i'm new to this so please be gentle with me :D

    Thanks

    Andy.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Different Worksheet Passwords

    I'd do the following:

    (simple version)

    1) Made all sheets (except of Home) very hidden
    for instance:
    Please Login or Register  to view this content.
    2) then on your home sheet in one cell user shall select his name (easiest - data validation based on a list)
    in another cell place for his password
    a button calling "show_my_sheet" makro

    or 2a) selection from list or combobox and password field (could set to beloved ****) and a button in a Userform (can be autoshown by Workbook_Open event)

    3) code show_my_sheet macro setting visibility of "logged in" user sheet to xlSheetVisible

    4) in the ThisWorkbook module in BeforeSave event again hiding all byt Home sheets - for instance using already coded sub:

    Please Login or Register  to view this content.
    5) of course protect the VBA project with password

    Hope, I managed to be gentle

  3. #3
    Registered User
    Join Date
    12-17-2013
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Different Worksheet Passwords

    Hi

    Thanks for your reply,

    I have some code that i found somewhere else but can't get it to work. I would rather have a password for each worksheet than hiding them or creating forms. Here is what i have.

    Please Login or Register  to view this content.
    Cheers
    Andy

+ 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] How to Apply Different Passwords to Each Columns without Protect worksheet?
    By Rajeshkumar R in forum Excel General
    Replies: 5
    Last Post: 05-13-2013, 07:26 AM
  2. VBA to bypass passwords on each worksheet and zoom to 40% on opening
    By kidwispa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2013, 06:25 AM
  3. [SOLVED] macro to remove worksheet-level passwords
    By DavidH in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2013, 01:33 PM
  4. access to worksheet protected by different passwords
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-22-2011, 08:01 PM
  5. Limiting worksheet access through passwords
    By tvwhome in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-22-2010, 03:52 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