(If it works in other versions, all the better; I originally had this problem with Word 2007, and nothing seems to have changed since then.) This includes cross-references, page numbers, tables of contents, indexes, headers, etc.
Taking care of the common cases is good enough for me. Sub Update All Fields In(doc As Document) '' Update tables. Update Next toc Dim tof As Table Of Figures For Each tof In doc.
In fact, it's ok if I have to run the macro two or three times before it stabilizes. We do this first so that they contain all necessary '' entries and so extend to their final number of pages.
I just want to have a single macro that finds everything.) My attempt so far doesn't update fields in text boxes inside figures.
I'm pretty sure it didn't in Word 2007 but I no longer have it to test.
Next Story Range '' FIXME: for footnotes, endnotes and comments, I get a pop-up '' "Word cannot undo this action. In fact without the option some fields are updated but not all.
Sub Update All Fields() Update All Fields In Active Document End Sub Working for me now in Word 2010 (where the setting is in“File → Options → Display”).
Update Wend Next sr End Sub '' Update all the fields, indexes, etc. '' This is a parameterless subroutine so that it can be used interactively.
Ok from this last post you are saying that you have a Field on a BC lets call it BC "A" and another Field on BC "B" both are some how related (Hint: The more detail in your question, the better the answer you will get, AND THIS IS A VERY IMPORTANT HINT) then you have calculated value in "A" BC and you want to set the value of that calculated field into the "B" BC field I'm right?
Also that has to happen every time the field on "A" is updated.