View Single Post
 
Old 01-19-2012, 11:46 AM
Jamal NUMAN Jamal NUMAN is offline Windows 7 64bit Office 2010 64bit
Expert
 
Join Date: Nov 2010
Posts: 615
Jamal NUMAN is on a distinguished road
Question

Quote:
Originally Posted by macropod View Post
That's not correct. Word has never had such an option, but has had an option to update links automatically. Whilst links use fields, not all fields are links. There are numerous fields a user wouldn't want to update automatically, including ASK & FILLIN fields.

Some years ago, MS did change the update of some fields that previously updated automatically in the body of the document, but not all. Fields that do still update automatically include most fields ordinarily used in page headers/footers (and this includes certain fields that don't update automatically when in the body of the document).

And yes, there is an option that updates all fields automatically if any of them change - its any formfield that has the 'calculate on exit' option checked. Of course, you wouldn't want to use one of these in most documents as the forms protection that these require severely restricts editing.

No, for the reasons explained. What is possible, though not necessarily advisable, is to add macros to, say, Word's Normal template to trigger the field updating any time a document is opened or saved. A macro that might be used in the Normal template's 'This Document' module is:
Code:
Private Sub Document_Open()
  ActiveDocument.Fields.Update
End Sub
but even this will only update fields in the body of the document.
Thank you Paul and Catalin.B for the informative answer. This is very helpful
1. I’m sorry Paul for the mistake in my previous post! I meant “I’m still wondering why –up to now- there is NOT an option that updates all the fields automatically”
2. I tried the code that you have provided that updates the fields in case of saving and opening the file. But unfortunately it didn’t work! Please, have a look on the screenshot 1.
What might be my mistake?
3. Also, I tried the code provided by Catalin.B and it worked very well. But what I’m looking for is to get all the fields updated AUTOMATICALLY as the file: open, saved, printed, …
Regards
Jamal
Attached Images
File Type: jpg Clip_282.jpg (91.9 KB, 59 views)
File Type: jpg Clip_283.jpg (111.0 KB, 59 views)
Reply With Quote