Margins Property

Margins returns or sets the legend margins in page units. Returns a double.

Syntax

object.Margins

object.Margins = Margins

Parameter

Type

Description

Margins

Double

required, use page units

Example 1

This example demonstrates how to return the margins of a legend.

Debug.Print Legend.Margins

Example 2

This example demonstrates how to set the margins of a legend to 0.5 page units.

Legend.Margins = 0.5

Used by: Legend object