I’m using the demonstration files used in the linked article in the introduction. I’ve added the procedure in Listing A to the downloadable files. SEE: Windows 10: Lists of vocal commands for speech recognition and dictation (free PDF) (TechRepublic) There is one possibility that isn’t covered: The user opens the file, makes modifications, and then sends the file without closing the document, which isn’t likely because most of us would close and save the document before sending it. If the user opens the document and prints without making modifications, the fields are updated first.If the user makes modifications and closes the document before emailing, the fields are updated first.If the user prints the document, the fields are updated first.In addition, check the option reviewed at the beginning of this article to cover almost every possible scenario: You could trigger both the Open and Close events to cover most situations. You can use the Open event, but that won’t update fields after you modify the document. The only real problem is deciding what event to use, and Close makes the most sense to me. That means, closing the document triggers the event that updates all fields. This procedure uses the Document object’s Close event. ‘Update all fields when closing document. Listing A shows how easy it is to update all fields when closing a document. This option has its place, but let’s look at a code solution that’s more dependable. In addition, you might not notice that a field doesn’t update if a bookmark or reference is broken because you won’t be viewing the document before updating when printing. First, if you’re sending the document by email you won’t be printing, so this option is useless. In the Printing section, check the Update Fields Before Printing option ( Figure A).Īs you might suspect, this option is limited.Click the File menu and choose Options or More and then Options in the left pane.Instead, you can set Word to always update fields before printing your document as follows: Even if you only have one or a few, it’s hard to remember to manually update those fields. To update all references in a document, press Ctrl + A, then press F9. To update an individual field, click on it and press F9 or right-click and select Update Field. For quick access to the VBA code, you can download the demonstration. Word Online won’t support the solutions in this article. I’m using Microsoft 365 on a Windows 10 64-bit system, but you can use earlier versions. SEE: 83 Excel tips every user should master (TechRepublic) In this article, I’ll show you a built-in setting that updates the fields before printing, and then I’ll show you a VBA solution. That’s not ideal because it’s a task that’s easy to forget. The problem is that the fields in use won’t update automatically, so the user must remember to do so. The article How to update a page number reference in a Word document uses fields to update cross-references in a Microsoft Word document. Windows 10 and 11 in S Mode: What Is It, and Should You Use It?ġ0 Best Project Management Software for Windows in 2023 How to Download and Install the Windows 11 23H2 Update Image: insjoy, Getty Images/iStockPhoto Must-read Windows coverage When you need this functionality, use this VBA procedure. Fields that don't update automatically pose a problem with many users because they don't remember to update them manually.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |