Password Protecting Files for Opening and Modifying

We all keep sensitive data in Excel. Whether it’s your secret checking account or the phone numbers of your mistresses, you don’t want your wife opening just an old Excel file she wants. To prevent that, you can keep your sensitive Excel files on a floppy and hide it in the toilet tank, or you can password protect the files.

On the Save As dialog, there’s a Tools menu.

Openpassword1

General Options shows the Save Options dialog.

Openpassword2

Here, you can enter a password to open the file and one to modify it. If you enter both, you’ll be prompted twice (a feature I never liked). I once inherited a file that used both. Did you guess the rest? They were the same password. How stupid is that?

The read only check box presents yet another prompt. Even after you’ve entered the password to modify, it warns you that you should open the workbook as read only unless you want to modify it. I just typed in the password, of course I want to modify it.

I rarely password protect my Excel files. If I did, they would all have the same password because there’s no way I’m going to remember more than a few passwords. Also, Excel’s password protection is notoriously easy to crack. At my office, I’ve protected the personal financial statements of all the owners. By the time I needed to update those files, I’d forgotten the password. I found a program that would crack it, but it only gives you the first three letters unless you pay. Fortunately, the first three letters was all it took to spark my memory. Now I have that password safely stored on a sticky note on my monitor (just kidding).

If I worked for Microsoft, I would have made the password prompt look like this

Openpassword3

You only get one prompt. If you know the second password, it would be assumed that you know the first. I suppose that’s one less password to crack, but I doubt that would increase the snooping very much. And if you enter the second one, no prompt for read-only.

11 Comments

  1. Stacie:

    My work deals with tracking bid information. We use the password option quite a bit, with the understanding that programs exist to crack, etc, etc. Mostly it is to prevent “accidential” changes by those that don’t know how to use the “Save As” feature. Some of our negiotators use the active quote to play with percentages and such. I could scream at that, but I’d be doing it all day long.

    Stacie

  2. fxp:

    I use passwords all the time to protect VBA code modules in client worksheets. I crypt the password and place it in the open under the Properties Custom tab. I have a macro on the closing that rewrites it in case someone should find and change it. To make all this easy, I wrote an addin on my machine only to create random numbers to crypt and decrypt. It’s not industrial strength, but more than enough for my needs.

  3. DavidH:

    I’m a VBA novice and I’ve been trying to write code that can tell me if a workbook uses the “password to open or modify” feature. Any ideas on how to go about it?

    Also, what’s the difference between “Password to Open or Modify” and the worksheet password that can be set with tools, protection, protect workbook?

  4. dharmesh:

    i forgot my password how to recover my excel protected files.

    pls. help.

    regards,
    dharmesh.

  5. dilip:

    This was great thanks

  6. Mallikarjun:

    Hi,

    I have gone through the article and found to be interesting. I too have a requirement and hope your component have the support feature. I have a requirement where I should password protect the xml files. This feature should be used from the .net desktop application. The software which I am developing for a client should use/read the xml files from the application. But these files should be password protected from the external drives/location, so that no one should be able to open these xml files.

    Please assist me if your component has this feature.

    Thanks in advance.

  7. Tbridges:

    I have forgotten my protection password, am I doomed or is there a way I can unprotect the protected cells?

  8. Amol Jain:

    i forgot password my excel file,
    pls tell me how to open file

  9. dipti:

    I forgot password my excel file, pls tell me how to open file

  10. seeja:

    I forgot password my excel file, pls tell me how to open file

  11. vahid hosseini:

    i have forgatten my password in excel.pls help me

Leave a comment