The FileName field in a header or in a footer is not automatically updated when you use the "Save As" command in Word 2004 for Mac (909034)
The information in this article applies to:
- Microsoft Word 2004 for Mac
SYMPTOMSYou insert a FileName field into a header or into a footer in a Microsoft Word 2004 for Mac document. However, the FileName field is not automatically updated as expected when you use the Save As command to save the file as a file that has a different name.CAUSEThis issue occurs because of a design change that enables Word 2004 for Mac documents that contain a FileName field to open faster.WORKAROUNDTo work around this issue, use one of the following methods. Method 1: Switch views in the documentTo switch views in the document, follow these steps: - In the Word 2004 for Mac document, click Normal on the View menu.
- On the View menu, click Page Layout.
Method 2: Use the Print Preview commandTo use the Print Preview command to work around this issue, follow these steps: - In the Word 2004 for Mac document, click Print Preview on the File menu.
- Click Close to close the print preview.
Method 3: Print the documentTo work around this issue, print the Word 2004 for Mac document. Method 4: Create an AutoOpen macro to automatically update the fieldTo create a AutoOpen macro to automatically update the field, follow these steps: - Open the Word 2004 for Mac document that contains the field that you want to update.
- On the Tools menu, point to Macros, and then click Visual Basic Editor.
- On the Insert menu, click Module.
- Type the following macro code in the Visual Basic Editor code sheet.
Sub AutoOpen()
Dim aStory As Range
Dim aField As Field
For Each aStory In ActiveDocument.StoryRanges
For Each aField In aStory.Fields
aField.Update
Next aField
Next aStory
End Sub - On the File menu, click Save document. Note that document is the name of the document that contains the field that you want to update.
- On the Word menu, click Close and Return to Microsoft Word.
- In Word 2004 for Mac, click Close on the File menu.
- Reopen your Word 2004 for Mac document.
- Click Enable Macros.
The field should now be automatically updated in your Word 2004 for Mac document. Note If you create an AutoOpen macro in a Word 2004 for Mac Document, the file name in the header or in the footer is automatically updated. If you add the /p field-specific switch to the FileName field, the path and the file name are automatically updated if you move, copy, or rename the file.
Modification Type: | Major | Last Reviewed: | 10/28/2005 |
---|
Keywords: | kbtshoot kbprb KB909034 kbAudEndUser |
---|
|