WinWord: Updating All Fields When Printing Documents

ID: Q86575

The information in this article applies to:

SUMMARY

All the fields in a Microsoft Word for Windows document are updated when you print the document if the Update Fields check box is selected in the Options dialog box. To access this option, choose Print from the File menu, and choose the Options button.

If the Update Fields check box is selected in Word version 2.0, 6.0, 6.0a, 6.0c of Word for Windows, the option is remembered between sessions of Word. The selections in the Options dialog box are recorded in the Word for Windows preferences file, WINWORD.INI (Word 2.0) or WINWORD.OPT (Word 6.0).

The Update Fields option in version 1.x of Word for Windows is not remembered between sessions of Word. In this situation, the FilePrint macro for version 1.x can be altered to automatically update all fields when a document is printed.

MORE INFORMATION

To edit the FilePrint macro for version 1.x of Word for Windows, use the following steps:

1. From the Macro menu, choose Edit, and select FilePrint from the

   list of macros. (If the FilePrint macro is not listed, select the Show
   All check box.) Choose the OK button, and make the following
   modifications:

     Sub MAIN
     On Error Goto Done :       '  - Add this line
     Dim dlg As FilePrint
     GetCurValues dlg
     dlg.UpdateFields = 1       '  - Add this line
     Dialog dlg
     Super FilePrint dlg
     Done:                      '  - Add this line
     End Sub

2. From the File menu, choose Close. Choose the OK button when
   prompted to save changes to Global:FilePrint.

3. Choose Save All from the File menu and when prompted, choose to
   save global glossary and command changes.

The above change to the FilePrint macro will automatically select the Update Fields check box whenever you choose Print from the File menu.

REFERENCES

"Microsoft Word for Windows User's Guide," version 2.0, pages 117-118

"Microsoft Word for Windows User's Reference," version 1.x, pages 277-278

Kbcategory: kbusage kbmacro KBSubcategory: Additional query words: winword2 1.0 1.10 1.10a 2.0 2.0a , 6.0 word6 winword

Version           : 1.x 2.x 6.0 6.0a 6.0c
Platform          : WINDOWS

Last Reviewed: July 30, 1997