+ Reply to Thread
Results 1 to 3 of 3

Excel Macro to Change All Sheet Passwords

  1. #1
    Registered User
    Join Date
    10-13-2009
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    75

    Excel Macro to Change All Sheet Passwords

    Backstory: A sheet was protected, the only individual with the password is out all week and a change was required for those of us not on vacation to continue our jobs this week. So I went ahead and used VBA to break the password but in doing so I accidentally saved before realizing that it broke and replaced the passwords for the entire workbook which has many, many protected sheets.

    Is there any way to use VBA (or another method) to replace the passwords with a user-defined password for all worksheets simultaneously? I know what the new password for the sheets is. I'd like to make recovering from this as easy as possible

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel Macro to Change All Sheet Passwords

    Hi,

    One VBA approach is with the following.

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-13-2009
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    75

    Re: Excel Macro to Change All Sheet Passwords

    Thanks! I modified it to first unlock the sheets and then relock with the new password.


    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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