Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
A file does not open in the program that you expect when you try to open the file in Office
Article ID: 918957 - View products that this article applies to.
In Microsoft Office, you open a file by double-clicking the file, or you open an attachment in e-mail. When you do this, the file does not open in the program that you expect. For example, a Microsoft Word document may open in a program other than Word.
This issue occurs because the file associations for the program are incorrect.
To resolve this issue, correct the file associations for the program by repairing Office or the Office program, or by using the regserver command.
Note Make sure that you have the correct program installed for the file association. You can verify this by viewing the file name extension. For example, a Word document will have a ".doc" extension.
Method 1: Repair Office or the Office programWhen you repair Office, the correct file association will reassociate with the corresponding Office program. To repair Office or the Office program, follow these steps:
Method 2: Use the "regserver" command to reregister the Office programThe regserver command forces the Office program to reregister itself and then exit. Use this command when you want to rewrite all the program's registry keys and reassociate the program together with the appropriate program files. To do this, and to write the correct file association information in the Windows registry, follow these steps.
Note In these steps, program.exe is a placeholder for the program file for the program that you want to reregister. If you installed Office to another location, use the path that is correct for that location.
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/211494/ )Excel opens without displaying a workbook
(http://support.microsoft.com/kb/320516/ )You cannot open Excel files in Windows Explorer after you use the Text Import Wizard to open a text file
(http://support.microsoft.com/kb/290852/ )You cannot double-click to open an Excel attachment in Outlook 2002
Article ID: 918957 - Last Review: May 24, 2006 - Revision: 1.6