To automatically update the field that is contained in your Word document, create an AutoOpen macro. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Microsoft support engineers can help explain the functionality of a particular procedure.
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. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. Method 2: Create a macro to automatically update the field To update the field manually, select the field that is contained in your Word document, and then press F9. To work around this behavior, use one of the following methods. 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. 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. The FILENAME field does not automatically update when you open a document in Word Symptoms