Title Property

 

The Title property returns or sets the legend title. Returns a string.

 

Syntax

object.Title( LayerName )

object.Title( LayerName ) = Title

 

Parameter

Type

Description

LayerName

String

required; layer name

Title

String

required; title text

 

Remarks

To return the title of a legend it is only necessary to use the LayerName parameter.

 

Example 1

This example returns the title of the legend for the "Layer #3" layer.

 

Debug.Print Legend.Title("Layer #3")

 

Example 2

This example changes the title of the legend on the "Layer #3" layer to "Legend for Layer 3."

 

Legend.Title("Layer #3") = "Legend for Layer 3"

 

Used by: Legend object