Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Automatically Updating Fields and Links.

Automatically Updating Fields and Links

by Allen Wyatt
(last updated June 11, 2018)


Stephanie wondered if there is a way in Word to force the updating of all fields and links in a document when either opening or saving (closing) the file. She knows that she can force updates prior to printing, but she was looking, specifically, for the open or close method of updating.

You can automatically update both fields and links when you print a document, but Word treats the two items differently when you are opening a file. Word provides a way to always update your links when opening a document. You can do this by following these steps:

  1. Display the Word Options dialog box. (In Word 2007 click the Office button and then click Word Options. In Word 2010 or a later version display the File tab of the ribbon and then click Options.)
  2. Click on Advanced at the left side of the dialog box. (See Figure 1.)
  3. Figure 1. The General area of the Word Options dialog box.

  4. In the General area (scroll down a bit to see it), make sure the Update Automatic Links at Open check box is selected.
  5. Click on OK.

That setting should make sure that all your links are always up to date. If you want to update the fields when the document is opened, you'll need to use a macro to accomplish the task. 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. The following is an example of an AutoOpen macro you can use.

Sub AutoOpen()
    With Options
        .UpdateFieldsAtPrint = True
        .UpdateLinksAtPrint = True
    End With
End Sub

Note that the macro makes sure that the options are set to force updating the fields and links when printing occurs, then it updates all the members of the Fields collection in the document. If you, instead, wanted to update the fields at closing, you could use this macro:

Sub AutoClose()
End Sub

This macro is much shorter because there is no need to set the update-on-print options when you are exiting the document.


If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (978) applies to Microsoft Word 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Word here: Automatically Updating Fields and Links.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Printing a List of Custom Styles

You can add any number of styles to your document in order to define how you want your text to appear. If you later want ...

Discover More

Shifting Objects Off a Sheet

One day you are just editing your worksheet like you normally do, then you see an error that says "Cannot shift object ...

Discover More

Getting Rid of Blue Squiggly Underlines

In an effort to make your writing better, Word uses "squiggly" underlines to mark things it thinks you may need to ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Inserting a Document's Path

You can use the FILENAME field to insert a document's filename and, optionally, the path to that filename. However, if ...

Discover More

Inserting the Author Name

Did you know that Word tries to keep track of who the author of a document is? This information can be easily added to ...

Discover More

Getting Rid of Fields Inserted by Third-Party Programs

Third-party programs can be used to affect a document and change what is contained therein. Of course, getting rid of ...

Discover More

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 9?

2018-04-12 14:15:47


How do you revise the macro if you want it to update fields like LastSavedDate after you Save but continue working without closing and re-opening the document?

2017-02-07 21:39:41

C Perkins

At least in Word 2013, one can also go to File | Options | Display, then down to the Printing Options section. There are two checkboxes there that correspond to the UpdateFieldsAtPrint and UpdateLinksAtPrint properties shown in the macro. This helps avoid having to use macros, especially in Word 2013 which requires a special "macro-enabled" format for the word doc. It still does not update automatically without printing, but at least the output will be up-to-date.

2016-11-24 05:12:10


In case anyone is wondering where it is saved - it is a Group Policy setting : "Update fields before printing"

2016-11-23 12:04:40


Hi, I'm using the macro with Word 2010 and for some reason, the fields PAGE and NUMPAGES will not be updated in footers after page 4.

In a 10 pages document, I would have 1 of 4, 2 of 4, 3 of 4, and 4 of 4 starting on page 4 until the end?

Any idea why NUMPAGES stocks is stock at 4 for all pages? Why does PAGE stop incrementing after page 4?

It does the same for any documents with different number of pages.


2016-10-13 12:09:42


Does anyone know where this setting is saved?
Some of our users have it ticked and some don't.

Is it saved in the normal template?

2016-05-02 23:44:58


None of these methods work for all fields in the header/footer ?

2015-12-28 00:16:43


My facts - F9 doesn't update my fields. Ryan's macro does but it puts "Go to..............Page Break........" in front of the first field where no Page Break existed.
With "View Field Codes" turned On, the fields come back to the page where the "Go To" is.
Print Preview does update the fields.

What do I need to check to get F9 to update links?
What in Ryan's code puts the "Go to..............Page Break........" , so as to avoid that (or other code)?

2015-06-25 10:56:35

Don Martin

Press the F9 key to update fields.

2015-04-29 07:10:57


I was looknig for a way to update indexes (fields) in my word document after adding a new index (field), which caused all the following indexes to have incorrect (old) value.
Ryan's macro above helped me and did the work.
Thanks Ryan!

2015-02-23 06:58:29

Maryland, USA

Linda, yes there is a way: Copy the number from the table and paste it into the text as a hyperlink, uding Paste Special... Choose Rich Text for its formatting to match the surrounding text.

2015-02-22 15:46:49


Is there a way to link a number from a Word table to the same number referenced in text (same document) so that it will update in text if changed in the table?

2014-10-15 23:20:07


Very helpful post. I can confirm that links between Excel 2013 and Word 2013 do NOT update correctly (with or without the setting box checked to do so). Using this script forces the update very smoothly. Thank you!

2014-07-04 01:42:24


Sub UpdateAllFields()

Dim aStory As Range
Dim aField As Field

For Each aStory In ActiveDocument.StoryRanges
For Each aField In aStory.Fields
Next aField
Next aStory

End Sub

2014-05-21 08:20:15


Many years ago, I set Word up to update fields and links on printing. A few years ago, this great feature stopped working. Our IT guys said it was a known bug in a Microsoft service pack, but I'm not convinced, as other people say their automatic updates still work. Is there some other setting than the one shown above that affects automatic updating?

2013-09-25 11:56:16


The AutoOpen () macro works wonders. My settings meant that Word should have been updating the linked files, but there was no consistency and I couldn't puzzle out what was happening... running AutoOpen () updates them perfectly :-)

This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Newest Tips

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.