Hi

I have created a template with headers & footers for page 2 onwards. The
template however is a one page template, the headers and footers present
themselves as they should, in the event of a second page being required. The
problem I am having is that the header for page 2 onwards holds a custom
field.

When page 2 is automatically created by typing lots of text the custom field
does not update. The only way to update the field is to print it, F9 it or
print preview. How can I have the header of my page 2 onwards custom field
updated when no page 2 exists until I start typing into my document?

Thanks very much in advance for your help.

Kerry.

Re: Word 2003 Custom Fields by Doug

Doug
Sat May 07 05:01:51 CDT 2005

Using the following should do it whether the primary header/footer is
visible in the document or not:

Dim i As Long
With ActiveDocument
For i = 1 To .Sections.Count
.Sections(i).Headers(wdHeaderFooterFirstPage).Range.Fields.Update
.Sections(i).Headers(wdHeaderFooterPrimary).Range.Fields.Update
.Sections(i).Footers(wdHeaderFooterFirstPage).Range.Fields.Update
.Sections(i).Footers(wdHeaderFooterPrimary).Range.Fields.Update
Next i
End With

--
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
"Kerry" <Kerry@discussions.microsoft.com> wrote in message
news:C48792C5-B4CF-4012-989F-0814250F2DD6@microsoft.com...
> Hi
>
> I have created a template with headers & footers for page 2 onwards. The
> template however is a one page template, the headers and footers present
> themselves as they should, in the event of a second page being required.
> The
> problem I am having is that the header for page 2 onwards holds a custom
> field.
>
> When page 2 is automatically created by typing lots of text the custom
> field
> does not update. The only way to update the field is to print it, F9 it
> or
> print preview. How can I have the header of my page 2 onwards custom
> field
> updated when no page 2 exists until I start typing into my document?
>
> Thanks very much in advance for your help.
>
> Kerry.