Please Note: This article is written for users of the following Microsoft Excel versions: 97, 2000, 2002, and 2003. If you are using a later version (Excel 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Excel, click here: Locked File Puzzle.

Locked File Puzzle

Written by Allen Wyatt (last updated June 28, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003


Eric was having a problem with one of his workbooks. It seems that every time he opened the workbook he saw a dialog box that said the file was locked and that he would have to save changes under a different name. Even when he does that, the dialog box still appears on the new workbook.

The first thing to try is to restart your machine, or copy the workbook to a different folder on your system. The reasoning for this is simple: Sometimes Excel can get confused and think that a file is "locked" by another user, when in fact it is not. Restarting or copying the workbook can help clear the confusion.

The most likely cause of this problem, however, is that there is some sort of macro running when the workbook is opened. Even if you save the workbook under a different name, the macro would be saved with the new workbook, and the process would repeat itself all over again. To test this, try the following:

  1. Open the workbook like normal, dismissing the dialog box.
  2. Select all the worksheets in the workbook. (Click on the left-most worksheet, then hold down the Shift key as you click on the right-most worksheet.)
  3. Choose Move or Copy Sheet from the Edit menu. Excel displays the Move or Copy dialog box. (See Figure 1.)
  4. Figure 1. The Move or Copy dialog box.

  5. Using the To Book drop-down list, choose (new book).
  6. Make sure the Create a Copy check box is selected.
  7. Click OK.

Now you have two workbooks: the one you opened and a new, unnamed workbook. Close the original workbook without saving, and then save the new workbook under any name desired. You should be able to open the new workbook with no problems, as macros are not copied in the above steps.

If you cannot complete step 3 because the Move or Copy Sheet option is not available, it means that the worksheets have been protected. You would need to remove protection from the worksheets before you could copy them.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2705) applies to Microsoft Excel 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Locked File Puzzle.

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

Inserting a Non-Breaking Hyphen

Non-breaking hyphens can come in helpful for some types of writing. They force the words (or characters) on both sides of ...

Discover More

Pasting Multiple Paragraphs Into a Single Cell

Copying information from one program (such as Word) to another (such as Excel) is a common occurrence. If you want to ...

Discover More

Changing Body Text to a Heading

When working on a document in Outline view, you may need to change regular body text to a heading in the outline. It's ...

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (menu)

Comma-Delimited Differences for PC and Mac

When you choose to save worksheet data in CSV format, Excel gives you three choices for file formats. Those choices are ...

Discover More

Seeing Full File Names in the Files Menu

Wouldn't it be great if you could look at the files in the MRU list and see the full path and file names? Excel condenses ...

Discover More

Full Path Names in Excel

Need to know what the full path name is for the current workbook? With a simple macro you can display the full path name ...

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 one less than 9?

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 menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon 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.