Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

OFFXP: Error Message: No Program Is Registered to Open This File


View products that this article applies to.

Symptoms

When you reference hyperlinks in Visual Basic for Applications, you may receive the following error message:
No program is registered to open this file.

↑ Back to the top


Cause

This error message can occur for the following reasons:
  • You are using one of the following Visual Basic for Applications methods:
    Doc.FollowHyperlink
    Hyperlink.Follow
    Document.Reload
    -and-
  • Windows is unable to find the program associated with the type of file that is specified in the hyperlink path. This can occur for one of the following possible reasons:
    • The program may not be installed.
    • Some of the necessary program file association information may be missing or damaged.
    • The program may not be correctly registered in the Windows registry.

↑ Back to the top


Resolution

To resolve this problem, you must write the correct file association. To do this, follow these steps:

Install the program that is needed to open this type of file. If the program is part of Office, follow these steps to write the correct file association information in the Windows registry:
  1. Close the program that you need to register.
  2. Click Start and then click Run.
  3. In the Open box, type the following
    C:\Program Files\Microsoft Office\Office\program.exe /unregserver
    where program.exe represents the appropriate program file for the program that you need to register. If you installed Office to another location, use the correct path for your location.
  4. Click Start and then click Run.
  5. In the Open box, type the following
    C:\Program Files\Microsoft Office\Office\program.exe /regserver
    where program.exe represents the appropriate program file for the program that you need to register.
  6. Reinstall the program to correctly register the program in the Windows registry.

↑ Back to the top


Keywords: KB298019, kbprb, kberrmsg

↑ Back to the top

Article Info
Article ID : 298019
Revision : 5
Created on : 1/31/2007
Published on : 1/31/2007
Exists online : False
Views : 315