Margin Property

The Margin property returns or sets the legend or text background box margin. Returns a Double (in page units).

Syntax

object.Margin

object.Margin = Margin

 

Parameter Type Description
Margin Double required, use page units

 

Example 1

This example shows how to set the legend margin to 0.5 inches.

Legend.Margin = 0.5

Example 2

This example shows how to return the margin distance.

Debug.Print Legend.Margin

Example 3

This example shows how to set the margin for a text object.

Text1.Margin = 0.15

 

Used by: AutoLegend object, AutoMText object