![]() Note: Make sure the Enable all macros (not recommended potentially dangerous code can run) option is checked in Trust Center dialog (Click File > Options > Trust Center > Macro Settings). See screenshot:įrom now on, every time you open the Macro-enable document, all field codes will be updated automatically. In the Save As dialog box, select a folder to save the document, name it as you need, select Word Macro-enabled Document from the Save as type drop-down, and then click the Save button. Click to save the code in Microsoft Visual Basic for Applications window, a Microsoft Word dialog pops out, click No to go to the Save As dialog.Ĥ. VBA: Refresh field codes when reopen the document Sub AutoOpen()įor Each xRange In ActiveDocument.StoryRangesģ. Copy and paste below code to the T hisDocument (Code) window. Press Alt + F11 keys to enable Microsoft Visual Basic for Applications window, double click ThisDocument in the left pane to open the ThisDocument (Code) window.Ģ. ![]() In Word, there is no built-in function can update the inserted fields, except the VBA code.ġ. In this tutorial, I introduce the way to auto update all field codes after reopening the document in Word.Īuto update field codes when reopen in Word In Word document, we can insert the document name by using the fields, but if the document has been renamed, the file name filed cannot be updated automatically. If updates are available, Office begins the process to. For example, directly from the Office CDN on the internet. This causes the Click-to-Run service to go look for updates at the location that you’ve configured Office to look for updates. How to auto update field codes when reopen document in Word? To do that, open any Office app, such as Word, and go to File > Account > Update Options > Update Now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |