Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    May 2003
    Posts
    69
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Protect Worksheet (2002)

    Hello. I would like to create a worksheet that is password protected for all users (view only) except for me, so that I don't need to enter a password each time I want to update the sheet. Is this possible? Thanks.

    -tmg9671

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Protect Worksheet (2002)

    You could create a Workbook_Open event procedure (in the ThisWorkbook module) that checks the username or network login name, and unprotects the worksheet if it's you, and a Workbook_BeforeClose event procedure that protects the worksheet again (with the same password).
    You'd have to protect the VBA code in the workbook with a password to prevent users from reading the code to discover the worksheet password. So each time you want to edit the code, you'd have to provide the VBA password! <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

  3. #3
    Star Lounger
    Join Date
    May 2003
    Posts
    69
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Protect Worksheet (2002)

    Thanks. I will give it a try.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •