Compartilhar via


Section.Footers Property

Word Developer Reference

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

Syntax

expression.Footers

expression   A variable that represents a Section object.

Remarks

For information about returning a single member of a collection, see Returning an Object from a Collection. To return a HeadersFooters collection that represents the headers for the specified section, use the Headers property.

Example

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

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

See Also