Update Fields

R

Ross Payne

In my Word 2003 document, there are a few fields. One is in the footer. I am
in the habit of hitting CTRL + A and then F9 to update the fields before
saving the document or printing it. But this does not appear to work for the
field in the footer. Is there a command for this, or do you just have to
remember to go into the footer to update the field? Thanks,

Ross Payne
 
G

Greg Maxey

Ross,

Toggle in and out of print preview.

I run a macro assigned to F9

Sub UpdateFields()
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
 
S

Suzanne S. Barnhill

Fields in the header/footer are automatically updated when you print (or
switch to Print Preview).
 
Top