Microsoft KB Archive/323216

= &quot;Cannot find the file&quot; error message when you try to open a workbook by double-clicking the .xls file =

Article ID: 323216

Article Last Modified on 2/1/2007

-

APPLIES TO


 * Microsoft Excel 2000 Standard Edition
 * Microsoft Excel 2002 Standard Edition

-



This article was previously published under Q323216



Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SYMPTOMS
When you double-click an Excel workbook (.xls) file to open it, you may receive the following error message:

Cannot find the file  (or one of its components). Make sure the path and file name are correct and that all required libraries are available.

Note In this example,  is the location of the workbook file.

Excel starts, but it does not open the workbook that you double-clicked. Instead, it opens a blank workbook.

You can open the workbook if you click Open on the File menu.



CAUSE
This problem may occur if registry entries for earlier versions of Excel conflict with registry entries for your current version. This condition can exist if you had an earlier version of Excel previously installed on your computer.



RESOLUTION
To resolve this problem, remove the registry entries for earlier versions of Excel. Registry entries for Excel are found in subkeys that correspond with the version, as shown in the following table:

  Excel Version      Subkey Name --  97                 8.0   2000               9.0   2002               10.0 Determine which version of Excel that you are currently running, and then rename the subkeys from earlier versions, as shown in the following procedure. For example, if you are currently running Excel 2002, rename any Excel subkeys that appear in the 8.0 and 9.0 subkeys. If you are currently running Excel 2000, rename only the Excel subkeys that appear in the 8.0 subkey. These subkeys may not appear on all systems.

To remove the conflicting registry entries, follow these steps:

Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.  Click Start, and then click Run. In the Open box, type regedit, and then click OK. In Registry Editor, locate the following subkey in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Office

 Expand the subkey that corresponds to the earlier version of Excel, and then click the Excel subkey. Right-click the Excel subkey, and then click Rename.</li> Type OldExcel, and then press ENTER.</li> Repeat steps 4 through 6 for any other subkeys for earlier versions of Excel.</li> Locate the following subkey:

HKEY_LOCAL_MACHINE\Software\Microsoft\Office

</li> Expand the subkey that corresponds to the earlier version of Excel, and then click the Excel subkey.</li> Right-click the Excel subkey, and then click Rename.</li> Type OldExcel, and then press ENTER.</li> Repeat steps 9 through 11 for any other subkeys for earlier versions of Excel.</li> Quit Registry Editor.</li> Start Excel. (This makes sure that the appropriate registry entries are created.)</li> Quit Excel.</li> Double-click an .xls file to start Excel and open the workbook.</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

304424 When you click a file icon, Excel starts but the file does not open as expected

211494 Excel opens without displaying a workbook

207574 Error message when opening a file by double-clicking the file name

Additional query words: XL2000 prb XL2002

Keywords: kbstartprogram kbopenfile kberrmsg kbprb KB323216

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.