PageNumbers Property
Applies To
HeaderFooter object.
Description
Returns a PageNumbers collection that represents all the page number fields included in the specified header or footer. Read-only.
See Also
Footers property, Headers property.
Example
This example creates a new document and adds page numbers to the footer.
Set myDoc = Documents.Add
With myDoc.Sections(1).Footers(wdHeaderFooterPrimary)
.PageNumbers.Add PageNumberAlignment := wdAlignPageNumberCenter
End With