PageSetup.TopMargin Property
Excel Developer Reference |
Returns or sets the size of the top margin, in points. Read/write Double.
Syntax
expression.TopMargin
expression A variable that represents a PageSetup object.
Remarks
Margins are set or returned in points. Use the InchesToPoints method or the CentimetersToPoints method to convert measurements from inches or centimeters.
Example
These two examples set the top margin of Sheet1 to 0.5 inch (36 points).
Visual Basic for Applications |
---|
|
This example displays the current top-margin setting.
Visual Basic for Applications |
---|
|
See Also