Microsoft KB Archive/68309

Macro to Update All Fields When Printing

PSS ID Number: Q68309 Article last modified on 06- 7-1991

1.00 1.10 MS-DOS

Summary: All fields will be updated when a document is printed, if the Update Fields check box is marked in the File Print dialog box. The File Print macro can be altered to automatically update the fields.

More Information: To edit the FilePrint macro. 1. From the Macro menu, choose Edit and select FilePrint from the list of macros. Click OK and edit the macro as follows: 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. Select OK when asked to save changes to Global:FilePrint. When Word for Windows is exited, you MUST choose Yes when asked “Save Global Glossary & Command Changes?”. This change to the FilePrint macro will automatically check the Update Fields check box whenever Print is chosen from the File menu.

Reference(s): Microsoft Word User’s Manual, pages 277-278. Microsoft Word Technical Reference for Windows and OS/2, page 173. Microsoft Word Technical Reference for Windows, page 51.

Additional reference words: w4wmacro