Word For Mac Fields Dont Update
I’m still wondering why –up to now- there is an option that updates all the fields automatically! 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.
You don't edit the field - whether on a Mac or a PC; you edit the appropriate document content then update the field so it reflects the edits. I know how to update the TOC after I do edits in the document.
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. 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: Sub RefreshFields(Doc As Document) Dim TOC As TableOfContents ' Table of Contents Object Dim TOA As TableOfAuthorities ' Table of Authorities Object Dim TOF As TableOfFigures ' Table of Figures Object Dim pRange As Range ' Word Range Object With Doc ' Loop through Story Ranges and update. ' Note that this may trigger interactive fields (eg ASK and FILLIN).
For Each pRange In.StoryRanges Do pRange.Fields.Update Set pRange = pRange.NextStoryRange Loop Until pRange Is Nothing Next ' The following routines are necessary because the foregoing updates only page numbers ' in TOCs, TOAs and TOFs - field updating doesn't update TOC, TOA or TOF contents. Code: Private Sub wdAppDocumentBeforePrint(ByVal Doc As Document, Cancel As Boolean) Call RefreshFields(ActiveDocument) End Sub Private Sub wdAppDocumentBeforeSave(ByVal Doc As Document, Cancel As Boolean) Call RefreshFields(ActiveDocument) End SubNote that I haven't tested this code (though it should work) and don't know what the outcome might be with all the different kinds of documents one might work with. In some cases (eg documents with ASK & FILLIN fields), the results may well be undesirable. The procedure for adding the code to a particular document, instead of to the Normal template, is exactly the same.
However, every reference to 'ActiveDocument' should be changed to 'ThisDocument'. That is correct. You can store the code in doc or docm files, not in docx files 5. Your comment is contradictory: Does it work when saving, or does it not?
AFAIK, the 'wdAppDocumentBeforeSave' module, if correctly implemented in a Class Module, should work for both 'Save' and 'Save As' procedures. As I am travelling, I am not in a position to review this matter more fully right now. The procedure for adding the code to a particular document, instead of to the Normal template, is exactly the same. However, every reference to 'ActiveDocument' should be changed to 'ThisDocument'.
That is correct. You can store the code in doc or docm files, not in docx files 5. Your comment is contradictory: Does it work when saving, or does it not? AFAIK, the 'wdAppDocumentBeforeSave' module, if correctly implemented in a Class Module, should work for both 'Save' and 'Save As' procedures. As I am travelling, I am not in a position to review this matter more fully right now.
I'm not sure if you still remember the issue of showing the name of the file and path on the title bar of the MS Access. I got a code from the forum (with autoexec) which is implemented as the file open (attached), in this case, it writes the name and the path of the file on the title bar I'm looking for such code that updates all the fields as we: save, save as, open and print. Code: Sub UpdateAllFields Dim oStory As Range For Each oStory In ActiveDocument.StoryRanges oStory.Fields.Update If oStory.StoryType wdMainTextStory Then While Not (oStory.NextStoryRange Is Nothing) Set oStory = oStory.NextStoryRange oStory.Fields.Update Wend End If Next oStory Set oStory = Nothing End Sub Hi Catalin, I'm not sure if this code can be developed to be embedded in the document (and work through a macro) to update the fields automatically as we: save, save as, open, or print. Thank you regards Jamal.
Best dolphin emulator button setup 5.0 for mac pc. I want to use keyboard and mouse, the mouse to use to look around.