Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Protecting an Entire Workbook.

Protecting an Entire Workbook

by Allen Wyatt
(last updated November 23, 2016)

3

Excel provides a way that you can protect an entire workbook. To stop the user from taking actions such as renaming a worksheet or inserting new worksheets, you must use workbook-level protection. To protect your workbook, display the Review tab of the ribbon and click the Protect Workbook tool in the Changes group. Excel displays the Protect Structure and Windows dialog box. (See Figure 1.)

Figure 1. The Protect Structure and Windows dialog box.

The two check boxes in the dialog box allow you to indicate exactly what should be protected in the workbook. The choices are as follows:

  • Structure. Prevents any changes to the worksheets themselves. The user cannot change the order of any worksheets, their names, add new ones, or delete existing ones.
  • Windows. Stops the user from moving any windows used in the workbook.

At the bottom of the dialog box you can specify a password to use for this level of protection. When you click the OK button Excel asks you to repeat any password you specified. If you did not provide a password, then Excel simply protects your workbook directly.

If you later want to remove the protection applied to a workbook, you do so by following the same steps you used to protect it: Display the Review tab of the ribbon and click the Protect Workbook tool in the Changes group. If you used a password to protect the workbook, Excel displays the Unprotect Workbook dialog box. At this point, all you need to do is enter the correct password and the workbook is unprotected.

You should note that protecting a workbook without protecting the worksheets it contains doesn't offer much protection. (Protecting worksheets is covered in other issues of ExcelTips.) The reason is that even though a user cannot delete a worksheet in a protected workbook, they can delete the information the worksheet contains. In other words, workbook protection does not protect the contents of your workbook at any level "lower" than individual worksheets.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (8530) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Protecting an Entire Workbook.

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

Pictures Move on their Own

Insert some pictures into a document, and you may be in for a surprise—they don't necessarily stay where you put them. ...

Discover More

Setting the Print Area

Many people, when they print a worksheet, print the entire thing. You don't have to, however. You can specify that Excel ...

Discover More

Turning Off Error Checking

A little green triangle in the corner of a cell means that Excel thinks there is an error with the cell contents. If those ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Always Opening a Workbook that is Editable

When you send a workbook to a coworker, it can be bothersome if that person has problems using what you created. There is a ...

Discover More

Limiting Who Can Delete Data

Excel allows you to protect your worksheet data in several different ways. Unfortunately, it doesn't allow you to protect the ...

Discover More

Protecting a Workbook from Opening in Other Programs

When working with sensitive information, you always need to be concerned that your data doesn't fall into unwanted hands. ...

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}] 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 8 - 3?

2016-11-23 10:26:19

David Bonin

Protecting a workbook and its sheets is typically done to prevent accidental user changes, not malicious changes. Things like accidentally deleting cell contents, breaking array formulas, typing where you're not supposed to, etc. Adding protection without a password is usually sufficient for that.

In the case of a malicious user, it's not that hard to "crack the password" if one is used. Fortunately, most of us have other avenues to deal with people like that.


2016-11-23 09:44:15

Don W

Linda B, if they know the password, nothing. However, you could write a VBA code that will protect the workbook and if the user is not abc users, then end the sub, but if they are part of abc users, then allow the password.


2015-07-16 08:52:04

Linda B

What is to prevent another user from un-protecting the workbook?


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.