TopMargin Property [AutoPageSetup]

The TopMargin property returns or sets the plot window top margin distance in page units. Returns a Double.

Syntax

object.TopMargin

object.TopMargin = Top

 

Parameter Type Description
Top Double required, use page units

 

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: AutoPageSetup object