Footers Property

Microsoft Word Visual Basic

Returns a HeadersFooters collection that represents the footers in the specified section. Read-only.

For information about returning a single member of a collection, see Returning an Object from a Collection.

Example

This example adds a right-aligned page number to the primary footer in the first section in the active document.

With ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary)
    .PageNumbers.Add PageNumberAlignment:=wdAlignPageNumberRight
End With