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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top