Footers(wdHeaderFooterPrimary).PageNumbers. The following example adds page numbers to the first page footer in the first section in the active document. Use the Add method with the PageNumbers object to add a page number to a header or footer. If the OddAndEvenPagesHeaderFooter property is True, you can return an odd header or footer by using wdHeaderFooterPrimary, and you can return an even header or footer by using wdHeaderFooterEvenPages. In the menu that appears, select the desired preset header or footer. In our example, we'll click the Header command. Select the Insert tab, then click the Header or Footer command.
![2003 word headers different first page 2003 word headers different first page](http://www.addbalance.com/word/images/2019HeaderFooterDifferentiation2.png)
In our example, we'll add a preset header to our document. Use the OddAndEvenPagesHeaderFooter property with the PageSetup object to specify different odd and even page headers and footers. Word has a variety of preset headers and footers you can use to enhance your document's design and layout. Sections(1).Footers(wdHeaderFooterFirstPage) _ PageSetup.DifferentFirstPageHeaderFooter = True The following example inserts text into the first page footer in the active document. Use the DifferentFirstPageHeaderFooter property with the PageSetup object to specify a different first page. You can also return a single HeaderFooter object by using the HeaderFooter property with a Selection object. Footers(wdHeaderFooterPrimary).Range.Text = "Footer text" Headers(wdHeaderFooterPrimary).Range.Text = "Header text" The following example changes the text of both the primary header and the primary footer the first section of the active document. Use Headers( index) or Footers( index), where index is one of the WdHeaderFooterIndex constants ( wdHeaderFooterEvenPages, wdHeaderFooterFirstPage, or wdHeaderFooterPrimary), to return a single HeaderFooter object. Note You cannot add HeaderFooter objects to the HeadersFooters collection. With ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary) The following example displays the text from the primary footer in the first section of the active document.
![2003 word headers different first page 2003 word headers different first page](https://fthmb.tqn.com/9JcknbTICigml2a4KVUBXyrQhFU=/4992x3328/filters:fill(auto,1)/book-pages-182145954-5a5e62d50c1a8200377fd458.jpg)
Use the Headers or Footers property to return the HeadersFooters collection. In this article Section HeadersFooters HeaderFooter Multiple objectsĪ collection of HeaderFooter objects that represent the headers or footers in the specified section of a document.