On Dec 11, 3:21 pm, Angus <anguscom...[ at ]gmail.com> wrote:
[Quoted Text] > Hello > > I know I am not alone in finding the way Word does not update field > information frustrating. An example is to create a field based on > advanced document properties. The best way to update the entire > document I have found is to Ctrl A then F9. But this doesn't > completely work because Ctrl A does not select text in headers and > footers. > > Does anyone have a solution for this problem. ie how to update the > whole document when you change a field properties. > > Angus
The following macro should do the trick.
Yves
===================================== Sub UpdateAllFields() Dim story As Range
Application.ScreenUpdating = False
For Each story In ActiveDocument.StoryRanges story.Fields.Update Next
Application.ScreenUpdating = True
End Sub =====================================
|