Changing a Workbook Password

Written by Allen Wyatt (last updated October 21, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


Paul has a workbook containing sensitive information. This workbook is password protected. However, the password may have been compromised. Paul wonders if there is a way to change the password associated with a workbook.

Assuming this is actual workbook protection (as opposed to worksheet protection), changing the password is fairly easy. It is important to remember, though, that there are two ways you can password-protect a workbook.

If you can open the workbook and actually see the contents, without needing to enter a password, then follow these steps to change the password:

  1. Display the Review tab of the ribbon.
  2. Click the Protect Workbook tool, in the Protect group. Excel displays a dialog box asking for your password. This is your old password; go ahead and enter it.
  3. Click again on the Protect Workbook tool. Excel displays the Protect Structure and Windows dialog box.
  4. Enter, twice, whatever new password you want used for the workbook.
  5. Click OK. Excel closes the dialog box.
  6. Save your workbook.

At this point your workbook has a new password.

In Paul's situation, though, I suspect it is the second type of password that has been applied to the workbook. This password is required of the user when you first attempt to open the workbook. To change this password, follow these steps:

  1. Open the workbook using the old password.
  2. Display the File tab of the ribbon.
  3. At the left side of the screen, click the Info option.
  4. Click the Protect Workbook option. Excel displays several different protection options.
  5. Click the Encrypt with Password option. Excel displays the Encrypt Document dialog box, and there is already a password in the dialog box, displayed as a series of dots. This is the workbook's existing password.
  6. Delete the existing password, enter a brand-new password, and then click on OK. Excel asks you to confirm the password.
  7. Enter your new password a second time and click OK again.
  8. Save and close your workbook.

That's it; the password for opening the workbook has been updated. There is also another way to make changes to the password, and that is to open the workbook and then use Save As (press F12). In the resulting dialog box, click Tools | General Options. Here you can, once again, set the passwords for the workbook.

Remember that if there are older copies of the workbook in existence, changing the password doesn't affect them—it only affects the workbook you just saved.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (9925) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Setting Line Spacing in the Equation Editor

The Equation Editor can be a great boon when you need to include complex mathematical equations in your document. The ...

Discover More

Adding Line Numbers

Many types of documents, such as legal documents, require the use of line numbers to make it easier to identify specific ...

Discover More

Breaking Up Variable-Length Part Numbers

Part numbers can often be long, made up of other component elements. Breaking up part numbers into individual components ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Protecting an Entire Workbook

Want to stop other people from making unauthorized changes to your workbook? Excel provides a way that you can protect ...

Discover More

Using Strong Workbook Protection

Need to protect the data in your workbook so that others can't get at it? Here are some ideas on how you can approach the ...

Discover More

Cannot Add Worksheets to a Workbook

If you cannot add a worksheet to your workbook, it could be because the workbook is protected. This tip shows how to ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 2 + 2?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.