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.
by Allen Wyatt
(last updated October 23, 2014)
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:
Figure 1. The Move or Copy dialog box.
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.
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!
Tracking down a problem that occurs with a single workbook can be vexing. One such problem occurred with Chris, and these are ...Discover More
Need to get your data into a format that can be easily read by other programs? Chances are good that a simple CSV file will ...Discover More
When you open a workbook in Excel, the Open dialog box always starts within the folder in which you were last working. You ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.