I've found the following code, which seems to work. The only problem is that
it doesn't work when Word is initialy opened. Any ideas?
Sub AutoNew()
Dim Story As Variant
Dim rngNext As Word.Range
' Iterate through all story types
For Each Story In ActiveDocument.StoryRanges
' Only update fields in a footer
If Story.StoryType = wdPrimaryFooterStory Or _
Story.StoryType = wdFirstPageFooterStory Or _
Story.StoryType = wdEvenPagesFooterStory Then
' Update fields in this footer
Story.Fields.Update
' There may be linked footers so update them as well
Set rngNext = Story.NextStoryRange
Do Until rngNext Is Nothing
' Update fields in this footer
rngNext.Fields.Update
' Link to next story (if any)
Set rngNext = rngNext.NextStoryRange
Loop
End If
Next
End Sub
The following code is a bit simpler. It goes through every footer in every
section, and updates the fields.
Dim ftrFooter As HeaderFooter
Dim x As Long
With ActiveDocument
For x = 1 To .Sections.Count
For Each ftrFooter In .Sections(x).Footers
ftrFooter.Range.Fields.Update
Next ftrFooter
Next x
End With
I've tested it in an AutoNew macro and it seems to work fine.

Signature
Chuck Henrich
www.ProductivityApps.com
> I've found the following code, which seems to work. The only problem is that
> it doesn't work when Word is initialy opened. Any ideas?
[quoted text clipped - 27 lines]
> Next
> End Sub