Sub AutoOpen With Options

Automatically updating fields in word 2019

Change the Macros in box to your document file name. Workaround To work around this behavior, use one of the following methods. In the code sheet of the Microsoft Visual Basic editor, you should now see the beginnings of your AutoOpen macro.

Create a macro to automatically update the field Microsoft provides programming examples for illustration only, without warranty either expressed or implied. That setting should make sure that all your links are always up to date. This works pretty well, with one small problem. Why not do this when the document is saved Initially I thought all the fields should be updated on save as have others. Luckily, Microsoft give a workaround in the knowledge base article in the form of a macro that will automatically run when the document is opened, updating all the fields.

So by setting ActiveDocument. Microsoft support engineers can help explain the functionality of a particular procedure.

Microsoft support engineers can help

This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Specifically, you'll need to use either an AutoOpen or AutoClose macro, depending on whether you want to update the fields when the document opens or closes. If you want to update the fields when the document is opened, you'll need to use a macro to accomplish the task.

So by setting