Microsoft KB Archive/224016

= You receive a "The document name or path is not valid" error message when you try to open or save a document in Word 2000 =

Article ID: 224016

Article Last Modified on 12/2/2005

-

APPLIES TO


 * Microsoft Word 2000 Standard Edition

-



This article was previously published under Q224016





For a Microsoft Word 2002 version of this article, see 328100.



SYMPTOMS
When you open or save a document in Word, you may receive the following error message:

The document name or path is not valid. Try these suggestions:


 * Check the file permissions for the document or drive.


 * Use the File Open dialog box to locate the document.

( \ )

NOTE: Microsoft Office 2000 has built-in functionality that allows you to get more information about difficult-to-troubleshoot alerts or error messages. If you want to enable this functionality for this and other error messages in Microsoft Office 2000, please download the Microsoft Office 2000 Customizable Alerts file from the Microsoft Office Update Web site at the following address:

http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C

NOTE: If you reached this article by clicking the Web Info button in an error message, you already have Customizable Alerts enabled.



CAUSE
This error message occurs because Microsoft Word cannot locate the document or locate a referenced document that is contained within the document that you are trying to open or save.

See the "Resolution" section for the resolution that applies to your situation.



Common Causes
 Cause: You are trying to open a file that is listed in the Most Recently Used (MRU) list on the File menu.

You may receive this error message if you try to open a document from the MRU list, and the name or location of the document changed since you last opened it. To open your document, follow these steps:  On the File menu, click Open. Select your document, and then click Open.   Cause: You are opening an HTML (Hypertext Markup Language) document or Web page in Word.

Use one of the following methods to work around this problem.

Method 1: Use a Different HTML Editor or Text Editor
NOTE: This is the recommended method to work around this problem.

To open or edit the HTML document, use a different HTML or text editor, and make the changes that you want. For example, open the HTML document in Notepad or Microsoft FrontPage.

Method 2: Copy or Move the Referenced File
Before you open the HTML document in Microsoft Word, copy or move the referenced file that is listed in the error message to the appropriate location that is listed in the error message.

Method 3: Modify the Link Tag
IMPORTANT: It is not recommended that you modify a LINK tag in an HTML file, because this can make the result of the HTML file useless if you point it to an incorrect file. Use the following procedure at your own risk.

Before you try to open the file in Microsoft Word, follow these steps to edit the invalid LINK tag in the HTML file:

 Click OK to close the error message that you received in the "Error Message" section of this article.</li> Open the HTML file in a text editor. For example, open the file in Notepad. To do this, follow these steps:  Click Start, point to Programs, point to Accessories, and then click Notepad.</li> On the File menu, click Open.</li> In the Open dialog box, click to select the file, and then click Open.</li></ol> </li> Locate and change the LINK tag that references the missing file as listed in the error message. For example, locate and change the LINK tag similar to the following, to point to the correct location and file name:

<link id=Main-File rel=Main-File href="/?scid=..%2ftest.htm">

</li> After you modify the appropriate LINK tag, save and close your HTML file.</li></ol>

The HTML file should now open in Microsoft Word.

Method 4: Remove the Link Tag
IMPORTANT: It is not recommended that you remove a LINK tag from an HTML file, because this can make the result of the HTML file useless. Use the following procedure at your own risk.

Before you try to open the file in Microsoft Word, follow these steps to remove the invalid LINK tag from the HTML file:

 Click OK to close the error message that you received in the "Error Message" section of this article.</li> Open the HTML file in a text editor. For example, open the file in Notepad. To do this, follow these steps:  Click Start, point to Programs, point to Accessories, and then click Notepad.</li> On the File menu, click Open.</li> In the Open dialog box, click to select the file, and then click Open.</li></ol> </li> <li>Select and delete the LINK tag that references the missing file as listed in the error message. For example, select and delete the LINK tag similar to the following:

<link id=Main-File rel=Main-File href="/?scid=test.htm">

</li> <li>After you delete the appropriate LINK tag, save and close your HTML file.</li></ol> </li> <li>Cause: You are opening a Word document with a file name that contains international characters.

This problem occurs when you open a document whose file name contains international characters that are not in the current Windows system code page, and therefore are not recognized by Microsoft Windows.

For example, this error message occurs when your default country settings are set to "English (US)", and you attempt to open a document with Chinese, Greek, or Serbian (Cyrillic) characters in the file name.

You do not receive this error message when you open a document with German, French, or Swedish special characters in the file name, because these languages use the same code page as English.

To work around this problem, try one of the following:

<ul> <li>Do not double-click the document in Windows Explorer or My Computer. Instead, open the document in Microsoft Word. To do this, follow these steps:

<ol> <li>In Microsoft Word, click Open on the File menu.</li> <li>In the Open dialog box, click to select the document that you want to open, and then click Open.</li></ol>

-or-</li> <li>Right-click the file in Windows Explorer or My Computer, click Rename on the shortcut menu that appears, type a new file name for the document without using the international characters, and then press ENTER.</li></ul>

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

251383 WD2000: Cannot Open Document with International Characters in File Name

</li></ul>

Other Causes
<ul> <li>Cause: You create a document by using a template that contains a Hypertext Markup Language (HTML) frameset.

When Word loads frame files, it uses the default Document folder, as set in File Locations under Options on the Tools menu, regardless of where the frame files are located. When the default document and template folder are identical, this behavior does not occur.

To work around this issue, link each frame to a file. To do this, try the following.

<ol> <li>Follow these steps for all frames in your document: <ol style="list-style-type: lower-alpha;"> <li>Right-click each frame, and then click Save Current Frame As.</li> <li>In the Save As dialog box, click Word Document in the Save as type list, and then save the file.</li> <li>Right-click each frame, and then click Frame Properties.</li> <li>In the Frame Properties dialog box, on the Frame tab, click Link to file.</li></ol> </li> <li>On the File menu, click Save, and then click Document Template in the Save as type list.</li> <li>Type a file name, and then click Save.</li></ol>

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

203859 WD2000: Template File Containing Frames Does Not Open As Expected

</li> <li> Cause: You open a mail-merge main document, and Word cannot find the document's attached data source.

This problem can occur in the following cases.

Case 1
This problem can occur when all of the following conditions are true:

The mail-merge main document was saved as a Web page.

-and-

The attached data source is a Microsoft Access database file (*.mdb) or a Microsoft Excel worksheet that was attached to the mail-merge main document by using Microsoft Excel Worksheet via Converter ( *.xls, *.xlw).

-and-

The data source was renamed, moved, or deleted.

To prevent this problem, use one of the following methods.

Method 1: Find the Data Source

To find the data source for your Web page mail-merge main document, follow these steps:

<ol> <li>Click Find Data Source.</li> <li>In the Open Data Source dialog box, click to select your data source, and then click Open.</li></ol>

Method 2: Remove and Reattach Your Data Source

<ol> <li>Click Options.</li> <li>Click Remove Data/Header Source when the following message appears:

If the mail merge data/header source  no longer exists, choose Remove Data/Header Source to remove its association with   or choose Remove All Merge Info to make   a normal Word document.

</li> <li>On the Tools menu, click Mail Merge.</li> <li>In the Mail Merge Helper, click Get Data, and then click Open Data Source.</li> <li>In the Open Data Source dialog box, click to select your data source, and then click Open.</li></ol>

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

279346 WD2000: Invalid Page Fault When You Close "Find Data Source" in Mail Merge

Case 2
This problem can occur if you try to close the following error message by clicking the X in the upper-right corner of the dialog box:

is a mail merge main document. Word cannot find its data source, X010 (talk)_virtual_file_X010 (talk).olk.

To work around this problem, follow these steps:

<ol> <li>When you receive the error message described in the "Error Message" section of this article, click No.</li> <li>When you receive the second error message, click Options.</li> <li>Click Remove Data/Header Source.</li></ol>

The document now is no longer associated with the data source. To reattach the data source, follow these steps:

<ol> <li>With the document open, click Mail Merge on the Tools menu.</li> <li>In the Mail Merge Helper, click Get Data, click Use Address Book, select Outlook Address Book, and then click OK.</li></ol>

This creates a new virtual file, based on the current contact list information.

NOTE: You must repeat these steps each time that you restart Word and open the mail-merge main document that is attached to this data source.

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

241269 WD2000: Error Message: "C:\\X010 (talk)_virtual_file_X010 (talk).olk Is Being Used by Unknown"

</li> <li>Cause: You attempt to insert a named range from a Microsoft Excel file.

When you want to insert a named range that is contained in an Excel file into Microsoft Word, follow these steps:

<ol> <li>On the View menu, point to Toolbars, and then click Database.</li> <li>On the Database toolbar, click Insert Database.</li> <li>In the Database dialog box, click Get Data.</li> <li>In the Open Data Source dialog box, change the Files of type box to MS Excel Worksheets (*.xls), and then click to select your Excel file.

NOTE: You may need to change the Look in box to the folder that contains your Excel worksheet.</li> <li>In the Open Data Source dialog box, select the Select method check box, and then click Open.</li> <li>In the Confirm Data Source dialog box, click Excel sheets via ODBC (*.xls), and then click OK.</li> <li>In the Select Table dialog box, click the table (named range) you want that is contained in your Excel worksheet, and then click OK.</li> <li>In the Database dialog box, click Insert Data.</li> <li>In the Insert Data dialog box, click the range of records that you want to insert, and then click OK.

For example, if you want to use all of the records that are contained in the named range, click All.</li></ol>

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

224699 WD2000: Cannot Insert File Using Named Range of Excel File

</li> <li>Cause: You open a frames page that you shared with an earlier version of Word.

This problem can occur because you renamed a document that is part of an HTML Frames page. If you must open the document in an earlier version of Microsoft Word, follow these steps:

<ol> <li>Determine the file name of your original Word 2000 document that is contained in the frame. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>In Word 2000, open the document.</li> <li>On the Format menu, point to Frames, and then click Frame Properties.</li> <li>Click the Frame tab. The original Word 2000 document is listed in the Initial page box, under General.</li> <li>Click Cancel.</li></ol> </li> <li>Open the document that is listed in step 1-c.</li> <li>On the File menu, click Save As to save this document with a new file name, before you share the file with an earlier version of Word.</li></ol>

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

210041 WD2000: Error Message Opening Word 2000 Document in Earlier Version

</li></ul>

Additional query words: OFF2000

Keywords: kberrmsg kbinfo kbtshoot kbprb kbopenfile kbsavefile KB224016

-

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

© Microsoft Corporation. All rights reserved.