"Cannot find the file" error message when you try to open a workbook by double-clicking the .xls file (323216)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Excel 2002
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 path (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, path 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.
- Type OldExcel, and then press
ENTER.
- Repeat steps 4 through 6 for any other subkeys for earlier
versions of Excel.
- Locate the following subkey:
HKEY_LOCAL_MACHINE\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.
- Type OldExcel, and then press
ENTER.
- Repeat steps 9 through 11 for any other subkeys for earlier
versions of Excel.
- Quit Registry Editor.
- Start Excel. (This makes sure that the appropriate registry
entries are created.)
- Quit Excel.
- Double-click an .xls file to start Excel and open the
workbook.
Modification Type: | Minor | Last Reviewed: | 1/7/2006 |
---|
Keywords: | kbstartprogram kbopenfile kberrmsg kbprb KB323216 |
---|
|