P
Poody
I'm trying to update some fields located in table cells in the header, and am
not having any success.
These fields are the same fields located on the first page of the document
(in other words, they have the same name and should have the same values).
The macro I have updates the fields on page 1, but does not update them in
the header.
Here's the code from my macro (not including everything - just the relevant
portion):
<begin code>
Dim aStory As Range
Dim aField As Field
For Each aStory In ActiveDocument.StoryRanges
For Each aField In aStory.Fields
aField.Update
Next aField
Set aStory = aStory.NextStoryRange
Next aStory
<end code>
Don't know if it is important or not, but the header information is not on
the first page header, but is included on all subsequent page headers.
Thanks,
Rich
not having any success.
These fields are the same fields located on the first page of the document
(in other words, they have the same name and should have the same values).
The macro I have updates the fields on page 1, but does not update them in
the header.
Here's the code from my macro (not including everything - just the relevant
portion):
<begin code>
Dim aStory As Range
Dim aField As Field
For Each aStory In ActiveDocument.StoryRanges
For Each aField In aStory.Fields
aField.Update
Next aField
Set aStory = aStory.NextStoryRange
Next aStory
<end code>
Don't know if it is important or not, but the header information is not on
the first page header, but is included on all subsequent page headers.
Thanks,
Rich