B
Barry
I am trying to create a Word'03 template that includes a few form text fields
that I want to populate the header and footer of the document, and change
when the user changes the text in those fields.
I have done this for one section, the first section is the first page and
never displays the header/footer, but users can create new sections
throughout the document.
Code is called on exit from the form fields and looks like this:
Sub updateHeaderFooterFields()
With ActiveDocument.Sections(2)
.Headers(wdHeaderFooterPrimary).Range.Fields.Update
.Footers(wdHeaderFooterPrimary).Range.Fields.Update
End With
End Sub
So, how do I update al headers/footers in all sections?
Thx,
Barry
that I want to populate the header and footer of the document, and change
when the user changes the text in those fields.
I have done this for one section, the first section is the first page and
never displays the header/footer, but users can create new sections
throughout the document.
Code is called on exit from the form fields and looks like this:
Sub updateHeaderFooterFields()
With ActiveDocument.Sections(2)
.Headers(wdHeaderFooterPrimary).Range.Fields.Update
.Footers(wdHeaderFooterPrimary).Range.Fields.Update
End With
End Sub
So, how do I update al headers/footers in all sections?
Thx,
Barry