TopMargin Property [PageSetup]
TopMargin returns or sets the top margin in page units. Returns a double.
Syntax
object.TopMargin
object. TopMargin = Top
Parameter |
Type |
Description |
Top |
Double |
required |
Example 1
This example demonstrates how to return the top margin of a page.
Debug.Print PageSetup.TopMargin
Example 2
This example demonstrates how to set the top margin of a page to one page unit.
PageSetup.TopMargin = 1
Used by: PageSetup object