I’m working with a large document that I inherited. It has about 150
section breaks (due to flipping back and forth between portrait for
text and landscape for figures). Due to the different orientations,
none of these section breaks are set to “same as previous”.
In the header of each is a field that points to a custom document
property. When I change the document property, the fields in the
headers don’t automatically update.
Is there a way for me to command Word to update this field in in the
header in all 150 sections? (I’ll take either automatic or manual
methods.)
I don’t want to update each one individually. (Mind numbing!)
I tried “select all” then F9. The “select all” didn’t include the
headers.
I don’t want to update all the fields in the entire document. (There
are many others that I don’t want to update, and it takes forever
anyway.)
Any other ideas?
Thanks in advance.

Signature
Tallbob29
Jezebel - 22 Aug 2006 21:33 GMT
To update fields in headers only --
Dim pRange as Word.Range
Set pRange = activedocument.StoryRanges(wdPrimaryHeaderStory)
Do
pRange.Fields.Update
set pRange = pRange.NextStoryRange
Loop until pRange is nothing
You will need to be more sophisticated if you have different firstpage or
left/right headers.
> I'm working with a large document that I inherited. It has about 150
> section breaks (due to flipping back and forth between portrait for
[quoted text clipped - 19 lines]
>
> Thanks in advance.
Daiya Mitchell - 22 Aug 2006 21:40 GMT
You'll find a macro that updates all ranges in the document here:
http://groups.google.com/group/microsoft.public.word.docmanagement/browse_fr
m/thread/b5883316c1455f3e/d7ec442a3bfa7b1d%23d7ec442a3bfa7b1d
> I‚m working with a large document that I inherited. It has about 150
> section breaks (due to flipping back and forth between portrait for
[quoted text clipped - 19 lines]
>
> Thanks in advance.

Signature
Daiya Mitchell, MVP Mac/Word
Word FAQ: http://www.word.mvps.org/
MacWord Tips: <http://word.mvps.org/Mac/WordMacHome.html>
What's an MVP? A volunteer! Read the FAQ: http://mvp.support.microsoft.com/
Jezebel - 22 Aug 2006 23:39 GMT
That's a pretty lousy bit of code; and it updates ALL fields not just fields
in the headers, which the OP doesn't want.
> You'll find a macro that updates all ranges in the document here:
>
[quoted text clipped - 24 lines]
>>
>> Thanks in advance.
Daiya Mitchell - 23 Aug 2006 04:36 GMT
Whoops, I missed the part about not updating other fields.
> That's a pretty lousy bit of code; and it updates ALL fields not just fields
> in the headers, which the OP doesn't want.
[quoted text clipped - 27 lines]
>>>
>>> Thanks in advance.