Using Strong Workbook Protection

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


Dennis wonders if there is a way to lock a workbook in such a way that would prevent the "password breaker" VBA codes (or anything else for that matter) from cracking the password.

The short answer: sort of. I know that answer sounds rather wishy-washy, and perhaps non-committal, but there is a reason for that.

You see, the real answer depends on whether you want to rely strictly on what Microsoft has built into Excel or you want to rely on third parties. The tools that Microsoft provides for protecting workbooks aren't really that great. They've been getting better with each new version of Office, but they still aren't impossible to crack.

To get around this, many people don't distribute workbooks to others. Instead, they generate results in some other format—such as a PDF file—and then distribute those. This protects the original data in the worksheet and keeps the formulas in the worksheet away from others entirely.

If you need to distribute actual workbooks, the best approach is to not rely on Microsoft and, instead, look to third-party solutions. A good encryption tool could be used to encrypt the workbook file, making it all but impossible for anyone without the password to open it. Some even require two-pass authorization, which further protects whatever is in the file.

Understand, as well, that the type of third-party tools I'm talking about aren't limited to encrypting Excel workbooks. They are the type of tools that are more general-purpose in nature, providing the ability to encrypt any type of computer file.

How do you find good third-party encryption tools? You can do a search for "strong encryption," "encryption programs," or "encryption utilities" using your favorite browser, and it should turn up plenty of alternatives. When you find something that looks promising, make sure you then do a search using the product name and/or company name as the keyword. That will allow you to see if others are having problems with the product or with the company that makes the product.

Finally, you should understand that no matter what level of protection you use or what approach you use to protection, it is virtually impossible to "guarantee" that nobody can crack the encryption. Think NSA—there is a good bet that they (or other state-sponsored agencies) could, given enough time, crack your workbook. Fortunately, unless you are protecting state secrets or your workbook implements a way to select every winning lottery number there is, such folks won't spend the time or resources necessary to get at your data.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13409) 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

Options in Creating New Files

You'd think that Word would be consistent, right? Wrong! Here's one example where Word is anything but consistent when it ...

Discover More

Arranging Paragraphs

Need to move a few paragraphs around in your document? Word provides a couple of handy shortcuts that make it very easy ...

Discover More

Only Showing the Maximum of Multiple Iterations

When you recalculate a worksheet, you can determine the maximum of a range of values. Over time, as those values change, ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

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

Discover More

Changing a Workbook Password

Excel allows you to apply protection to your workbooks. If you want to later change the passwords associated with that ...

Discover More

Locking Worksheet Tab Order

When you develop a workbook for others to use, you may want to make sure that those users cannot change the order in ...

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

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.