Protecting a Workbook from Opening in Other Programs

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


3

Paul notes that an Excel workbook opened in Numbers (Apple) or Google Sheets (online) appears to have the password removed and all hidden columns available to be viewed. This is especially true with workbooks created in earlier versions of Excel. Later versions of Excel, beginning with Excel 2013, use advanced encryption techniques which make it more difficult to open protected Excel workbooks. Even so, Paul wonders if there is a way to hide columns or protect workbooks that Numbers and Google Sheets cannot unlock.

It appears that there is no way, Paul. Many programs (including Numbers and Sheets) can open Excel workbooks, and what they actually pay attention to and import varies from program to program. It is entirely possible that your hidden columns could suddenly be visible and simple password protection eliminated.

The only way around this is just that—a workaround. Most people who want to keep some of the data in a worksheet confidential will do one of two things. First, they might generate important information "on the fly" using macros. Most other programs (including Numbers and Sheets) don't do too well with Excel macros, so if the workbook is opened in those programs your macros are not executed and, therefore, the important information not generated.

The other workaround is to bypass Excel for distribution purposes. Instead, output your information to a format such as PDF which is great for viewing and printing while still protecting the underlying formulas and data.

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

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

Calculating the Interval between Occurrences

With a long list of items in a worksheet, you may want to determine the last time a particular item appeared in the list. ...

Discover More

Changing Headers and Footers

Editing what is in your page header or footer is fairly easy, and you can use the same editing techniques you already ...

Discover More

Hiding Fonts

Windows makes it easy to manage the fonts installed on your system. One of the lesser-known options is one that allows ...

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)

Saving a Workbook Using Passwords

If you want to protect your workbook so that others cannot open or change the information it contains, an easy way to ...

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

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?

2022-04-01 06:22:53

Endie Garry

I have a tip that works well for me.

I created an Excel document that requires input from the user to Generate Reports. The formulas and calculation sheets are hidden and are inaccessible to the user.

The script solution prevents my Excel document from being opened by other spreadsheet programs ( although not yet tested in Mac Numbers) can only open in MS Excel.

(see Figure 1 below)

Secondly it prevents the password protection from been hacked or removed, so the document remains always protected.

Is this of interest to anyone?

GarryE.

Figure 1. Unaccessible in GoogleSheets


2019-08-20 11:35:43

Mike

Anthony

I cannot see this as a satisfactory solution. Macros would have to be allowed if the file was opened in Excel, and anyway would almost certainly fail to run if the file was opened with one of the other applications mentioned here.
The only certain way to conceal information from prying eyes is not to include it in the first place.
Maintain two versions. Delete the hidden columns from the shared/published version, and if the contents in the hidden columns are required and referenced by formulae, then convert those formulae to their calculated values and then delete the columns.


2019-08-19 08:15:12

Anthony

(while no solution is entirely foolproof...) At workbook open, could one not simply use VBA to determine Application/Version (and OS) and make a call from there? If Excel is not running, close the file.


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.