Article ID: 832897 - View products that this article applies to.
When you open a document in one of the versions of Microsoft Word that is listed in the "Applies to" section of this article, the FILENAME field (and path if applicable) does not update to the name and the location of the file that you just opened.
This behavior is a design change in Microsoft Word 2002 and later to permit your Word document that contains a FILENAME field to open more quickly.
To work around this behavior, use one of the following methods.
Method 1: Update the field manuallyTo update the field manually, select the field that is contained in your Word document, and then press F9.
Method 2: Create a macro to automatically update the fieldMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
To automatically update the field that is contained in your Word document, create an AutoOpen macro. To do this, follow these steps:
The FILENAME field will be updated automatically when you switch to print preview or when you print the document.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
211629For more information about AutoOpen macros, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/211629/ )Which fields are updated when you open, repaginate, or print document
(http://support.microsoft.com/kb/286310/ )Behavior of AutoExec and AutoLoad macros in Word
Contact us for more help
Connect with Answer Desk for expert help.