+ Reply to Thread
Results 1 to 2 of 2

Macro to password protect a workbook and lock and unlock it with a keystroke command

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    1

    Macro to password protect a workbook and lock and unlock it with a keystroke command

    Hi All,

    I am not a big excel user and I have never created a macro in excel at all. I don't know if what I want can/should be done as a macro or if there is an easier way. In any event, I need advice and assistance.

    I have a workbook that is shared by 8 people. Only me, my boss and one other person should be able to edit it, so I need it password protected so none of the others can change anything. My boss is the type who forgets passwords and he works on the document when I am not around. I think it would be simpler for him to remember a keystroke combo like Ctrl+L to lock and Ctrl+U to unlock. Is there a way to do this without creating a macro or if a macro is needed can I get assistance with creating one. Thanks.

  2. #2
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    106

    Re: Macro to password protect a workbook and lock and unlock it with a keystroke command

    If you are going for security then you really shouldn't do anything besides a password because if somebody hits the hotkey by accident they can unlock it. You may as well just protect the worksheet and not assign a password

    That being said... something like
    Please Login or Register  to view this content.
    to protect it and

    Please Login or Register  to view this content.
    to unprotect it. create 2 separate macros one for unprotect one for protect, change password to whatever you want (leave the quotes", assign desired hotkey and you are good to go.

+ 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. Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  2. Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  3. Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  4. Replies: 1
    Last Post: 06-24-2005, 09:59 AM
  5. Replies: 1
    Last Post: 06-23-2005, 09:05 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