HeaderMargin Property
Applies To
PageSetup object.
Description
Returns or sets the distance from the top of the page to the header, in points. Read/write Double.
Remarks
Margins are set or returned in points. Use the InchesToPoints method or the CentimetersToPoints method to convert measurements from inches or centimeters.
See Also
BottomMargin property, FooterMargin property, LeftMargin property, RightMargin property, TopMargin property.
Example
This example sets the header margin of Sheet1 to 0.5 inch.
Worksheets("Sheet1").PageSetup.HeaderMargin = _
Application.InchesToPoints(0.5)