Applies To
PageSetup Object.
Description
Returns or sets the center part of the header. Read-write.
Remarks
Special format codes can be used in the header text.
See Also
CenterFooter Property, LeftFooter Property, LeftHeader Property, RightFooter Property, RightHeader Property.
Example
This example prints the date and page number at the top of each page.
Worksheets("Sheet1").PageSetup.CenterHeader = "&D page &P of &N"