RightMargin Property [PageSetup]

RightMargin returns or sets the right margin in page units. Returns a double.

Syntax

object.RightMargin

object. RightMargin = Right

Parameter

Type

Description

Right

Double

required, use page units

Example 1

This example demonstrates how to return the right margin of a page.

Debug.Print PageSetup.RightMargin

Example 2

This example demonstrates how to set the right margin of a page to one page unit.

PageSetup.RightMargin = 1

Used by: PageSetup object