Written by Allen Wyatt (last updated November 3, 2021)
This tip applies to Word 97, 2000, 2002, and 2003
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:
Figure 1. The General tab of the Options dialog box.
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 ActiveDocument.Fields.Update 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() ActiveDocument.Fields.Update 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.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (422) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Automatically Updating Fields and Links.
Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!
When you install Microsoft Office, you are required to enter a product key that unlocks the software for your use. This ...
Discover MoreYou can easily hide text by simply changing the attributes associated with the text. Once that is done, you can turn the ...
Discover MoreA series of options for checking the CPU load of your Word document.
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2018-02-02 15:20:49
Alessio
I don't know what happened. I'm a videographer that produces a lot of motion graphics. I have a word document that serves as a script bible, that contains all of the content. I have a folder with a dozen word files that have this VBA code in them, and I reference these files to various scenes in my bible using bookmarks. I then put them through a TTS reader and create an audio file.
Question:
I used to be able to update the bible and have it update my audio file with out having to quit out of the Bible word document. Since the last windows update the VBA moded word doc returns a "Error ! cannot open file" when I try to updates it with the bible file open.
Do you know what may have happened?
it adds an extra 3 steps to my workflow which I find annoying because the bible gets updated often.
Windows 10 Home
Version 10.0.16299
Build 16299
Microsoft Office 365
Version 1712
Code used:
Sub UpdateAllFields()
ActiveDocument.Fields.Update
Document_Open (ThisDocument.Fields.Update)
End Sub
Private Sub Document_New()
End Sub
Private Sub Document_Open()
ThisDocument.Fields.Update
End Sub
Private Sub Document_Sync(ByVal SyncEventType As Office.MsoSyncEventType)
ActiveDocument.Fields.Update
End Sub
Thank very much for this site, I have been learning alot.
2017-06-13 07:05:27
Reezwana
I have linked images in a word document (word 2010). 'Update automatic links at open' is unchecked. However, each time I open the word document, it automatically updates all linked images in the document. How do change the settings so that I can manually update linked images in the word document by hitting F9?
I tried the 'Edit Links to Files' option, but the options of selecting 'Automatic update' or 'Manual update' are greyed out. Also, in the list of all my linked images, under the column 'Update', it has 'Man' for each linked image.
So if all the images are set to update manually, as per the link manager above, why does it still update each time I open the word document?
2017-06-13 06:52:27
Reezwana
I have linked images in a word document (word 2010). 'Update automatic links at open' is unchecked. However, each time I open the word document, it automatically updates all linked images in the document. How do change the settings so that I can manually update linked images in the word document by hitting F9?
I tried the 'Edit Links to Files' option, but the options of selecting 'Automatic update' or 'Manual update' are greyed out. Also, in the list of all my linked images, under the column 'Update', it has 'Man' for each linked image.
So if all the images are set to update manually, as per the link manager above, why does it still update each time I open the word document?
2017-01-17 11:48:45
Lohith
how to updaet all the page number in index page using VB script please help me
2016-11-02 10:47:40
James Aston
Awesome tip! I'd put together an Excel tool and linked Word templates a while back to allow exam front covers to be produced that were of the same format and standard regardless of the exam in question. We had a recent software update which threw all the settings out, and the people now doing the exams (I've moved positions since then) couldn't get it to work, so they asked me. I changed the settings, rechecked it and gave it back to them but it didn't work - seems that when I changed the settings in the options menu it only saved them for me, not for the documents (they're on a MOSS site) - I updated the Word templates with your macro (a nice easy cut and paste) and hey presto!! Brilliant! Thank you!
Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.
Visit the WordTips channel on YouTube
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments