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: Saving a Workbook Using Passwords.

Saving a Workbook Using Passwords

Written by Allen Wyatt (last updated November 28, 2020)
This tip applies to Excel 2007, 2010, and 2013


2

Excel includes a feature that allows you to save a workbook using a password so that only others who have the password can access the file. This form of protection can stop others from using a workbook unless they know your password. To save a workbook using password protection, follow these steps:

  1. Press F12. Excel displays the familiar Save As dialog box.
  2. Use the controls in the dialog box to specify a file name and location, as you normally do.
  3. Click on the Tools button at the bottom of the Save As dialog box, and then choose General Options. Excel displays the General Options dialog box. (See Figure 1.)
  4. Figure 1. The General Options dialog box.

The General Options dialog box contains boxes where you can enter two passwords. Each password controls a different level of protection. If you fill in the first password field, you are specifying the password someone needs to know simply to open the workbook. If you fill in the second field, then someone needs to know that password to make any changes to the workbook. Understand that they can still save the open workbook under a new name, but they cannot make any changes and save them back into the same disk file.

You should set your passwords as desired, and then click on OK to dismiss the General Options dialog box. You are asked to confirm your password, and then you can continue to save your file (using the Save As dialog box) as you normally would.

As a final caveat, you should note that none of the native (built-in) password schemes in Excel are particularly robust. If you want the best protection possible, you should look to a third-party solution for encrypting and protecting your workbooks.

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

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 Your Default Document Directory

Word allows you to specify where it should start looking for your documents. This setting can come in handy if you store ...

Discover More

Deleting All Names but a Few

Want to get rid of most of the names defined in your workbook? You can either delete them one by one or use the handy ...

Discover More

Setting the Active Printer in VBA

Your macros can control where printed output is directed, but sometimes it can be difficult to get the settings correct. ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Removing Protection from a Protected Workbook

Excel provides built-in capabilities to protect your workbook files. If you apply these capabilities, it is possible that ...

Discover More

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
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?

2023-07-19 10:41:47

J. Woolley

@Gregory F Felts
To block access to sheet #5:
1. Update sheet #5.
2. Hide sheet #5.
See https://excelribbon.tips.net/T006713_Hiding_and_Unhiding_Worksheets.html
3. Protect the workbook structure; include a password.
See https://excelribbon.tips.net/T008530_Protecting_an_Entire_Workbook.html
4. You might want to protect the other four worksheets, too.
See https://excelribbon.tips.net/T010282_Using_a_Protected_Worksheet.html
5. Test your macros.
To view/update sheet #5, reverse steps 1-3 (only).
My Excel Toolbox includes the following function to return the protection status (TRUE/FALSE) of a Target cell's worksheet or workbook:
=IsProtected([Choice],[Target])
Choice for a worksheet is Contents (default), Shapes, Interface, or Scenarios
and Choice for a workbook is Sheets (structure) or Windows.
Target's default is the formula's cell.
My Excel Toolbox also includes the following dynamic array function to return the status of the 12 protection options for the formula cell's worksheet:
=ListProtectionOptions()
My Excel Toolbox's SpillArray function (described in UseSpillArray.pdf) simulates a dynamic array in older versions of Excel.
See https://sites.google.com/view/MyExcelToolbox


2023-07-16 16:02:30

Gregory F Felts

Is there a way to Block access to only one sheet in a workbook? 5 Sheets in a workbook, sheets 1-4 everyone has access to and all the information contained within, but sheet #5 has privy information that not everyone needs. Sheet #5 is UPDATED from a combination of two CVS file once a week and is used to update sheets 1-4. Would like to have to enter a Password to OPEN sheet #5.
As it is now, I update Sheet 5 with info from two CVS files then Update sheets 1-4 with a macro. THe BOSS needs all the info on Sheet #5 but not everyone else does.


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.