Is there a way to force the fields inside the header/footer to
refresh/update but on for the page the user is currently on?
I want to be able to update this without the need to update all sections and
pages so that it is much faster when just dealing with one page.
Greg - 31 Mar 2006 18:01 GMT
ML,
Not sure I understand exactly what you are trying to do. You might be
able to adapt one of the field macros provided here to suit your
particular need:
http://gregmaxey.mvps.org/Field_Macros.htm
Doug Robbins - Word MVP - 31 Mar 2006 18:52 GMT
Probably this
With Selection.Sections(1)
.Headers(wdHeaderFooterPrimary).Range.Fields.Update
.Headers(wdHeaderFooterFirstPage).Range.Fields.Update
.Footers(wdHeaderFooterFirstPage).Range.Fields.Update
.Footers(wdHeaderFooterPrimary).Range.Fields.Update
End With
but I would be very surprised if you were able to detect the difference in
performance between that and
Dim i As Long
With ActiveDocument
For i = 1 To .Sections.Count
With .Sections(i)
.Headers(wdHeaderFooterPrimary).Range.Fields.Update
.Headers(wdHeaderFooterFirstPage).Range.Fields.Update
.Footers(wdHeaderFooterFirstPage).Range.Fields.Update
.Footers(wdHeaderFooterPrimary).Range.Fields.Update
End With
Next i
End With
which will update the fields in all of the headers and footers in the
document.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Is there a way to force the fields inside the header/footer to
> refresh/update but on for the page the user is currently on?
> I want to be able to update this without the need to update all sections
> and pages so that it is much faster when just dealing with one page.
ML - 31 Mar 2006 19:49 GMT
The performance issues is because Word repaginates it seems no matter what
you do and in a long document it slows things down too much.
> Probably this
>
[quoted text clipped - 27 lines]
>> I want to be able to update this without the need to update all sections
>> and pages so that it is much faster when just dealing with one page.
Jezebel - 01 Apr 2006 00:07 GMT
Updating fields in headers and footers for some vs all sections will have no
effect on Word's repagination.
> The performance issues is because Word repaginates it seems no matter what
> you do and in a long document it slows things down too much.
[quoted text clipped - 30 lines]
>>> I want to be able to update this without the need to update all sections
>>> and pages so that it is much faster when just dealing with one page.
Charles Kenyon - 31 Mar 2006 23:54 GMT
Headers and footers are not in just one page, but one section (which may be
the entire document).

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> Is there a way to force the fields inside the header/footer to
> refresh/update but on for the page the user is currently on?
> I want to be able to update this without the need to update all sections
> and pages so that it is much faster when just dealing with one page.
ML - 01 Apr 2006 00:19 GMT
I am well aware of that. I was just hoping there might be a way to just
refresh the current page fields or something along those lines.
> Headers and footers are not in just one page, but one section (which may
> be the entire document).
>> Is there a way to force the fields inside the header/footer to
>> refresh/update but on for the page the user is currently on?
>> I want to be able to update this without the need to update all sections
>> and pages so that it is much faster when just dealing with one page.
Jezebel - 01 Apr 2006 01:37 GMT
If you are well aware of that, the hope is self-evidently absurd.
>I am well aware of that. I was just hoping there might be a way to just
>refresh the current page fields or something along those lines.
[quoted text clipped - 5 lines]
>>> I want to be able to update this without the need to update all sections
>>> and pages so that it is much faster when just dealing with one page.
ML - 01 Apr 2006 01:40 GMT
Well despite headers and footers not being page specific you can make them
have page specific info displayed in them.
Thanks though for your comment, very helpful.
> If you are well aware of that, the hope is self-evidently absurd.
>
[quoted text clipped - 8 lines]
>>>> sections and pages so that it is much faster when just dealing with one
>>>> page.
Jezebel - 01 Apr 2006 02:55 GMT
Gegen der Dummheit kämpfen die Götter selbst vergebens.
> Well despite headers and footers not being page specific you can make them
> have page specific info displayed in them.
[quoted text clipped - 12 lines]
>>>>> sections and pages so that it is much faster when just dealing with
>>>>> one page.
ML - 01 Apr 2006 03:36 GMT
Thanks again.
> Gegen der Dummheit kämpfen die Götter selbst vergebens.
>
[quoted text clipped - 14 lines]
>>>>>> sections and pages so that it is much faster when just dealing with
>>>>>> one page.