LeftHeader Property

Microsoft Excel Visual Basic

Returns or sets the left part of the header. Read/write String.

Remarks

Special format codes can be used in the header text.

Example

This example prints the date in the upper-left corner of every page.

Worksheets("Sheet1").PageSetup.LeftHeader = "&D"