I am trying to update the fields in my footer for a word document, and can't
do it.
I read all of word help, searched the Internet typing in a whole series of
word combinations.
I found one site that said it can't done. By "it" I mean that when I fill in
the drop down boxes, they update thoughout the entire document, but not in
the footer
If it is possible, I want it to update the footer fields as well.
Do you know if it is possible to do in word 2000?
Helmut Weber - 11 Dec 2004 23:25 GMT
Hi,
you have to address all storyranges.
see
http://word.mvps.org/faqs/customization/ReplaceAnywhere.htm
The example there is for replacing text, but could be adapted
to updating fields. If You can't get it to work, ask again.
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
Larry - 13 Dec 2004 19:59 GMT
Sub UpdateAllFields()
' Updates all fields in document including Headers/Footers.
Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
Next oStory
End Sub
Larry
> I am trying to update the fields in my footer for a word document,
> and can't do it.
[quoted text clipped - 8 lines]
>
> Do you know if it is possible to do in word 2000?