![]() Range.InsertBefore "Section 2 Odd Header" PageSetup.OddAndEvenPagesHeaderFooter = True ![]() Paragraphs(5).Range.InsertBreak Type:=wdSectionBreakNextPage The second part creates unique headers for even-numbered and odd-numbered pages in sections one and two in the new document. The first part of this example creates a new document with two sections. ![]() For example, the LinkToPrevious property could be set to True for the even-numbered-page header but False for the even-numbered-page footer. The LinkToPrevious property applies to each header or footer individually. Headers(wdHeaderFooterPrimary).PageNumbers.Add For instance, the following example adds page numbers to the header on all pages in all sections of the active document. Because the LinkToPrevious property is set to True by default, you can add headers, footers, and page numbers to your entire document by working with the headers, footers, and page numbers in the first section. When a header or footer is linked, its contents are the same as in the previous header or footer. SyntaxĮxpression An expression that returns a ' HeaderFooter' object. True if the specified header or footer is linked to the corresponding header or footer in the previous section.
0 Comments
Leave a Reply. |