RightHeader Property
Applies To
PageSetup object.
Description
Returns or sets the right part of the header. Read/write String. For more information, see Formatting Codes for Headers and Footers.
Remarks
Special format codes can be used in the header text.
See Also
CenterFooter property, CenterHeader property, LeftFooter property, LeftHeader property, RightFooter property.
Example
This example prints the filename in the upper-right corner of every page.
Worksheets("Sheet1").PageSetup.RightHeader = "&F"