EntryName Method

The EntryName method returns or sets the specified legend entry name. Returns a String.

Syntax

object.EntryName( index )

object.EntryName( index, lpszNewValue )

 

Parameter Type Description
index Short required, legend entry index number
lpszNewValue String required, new legend entry name

 

Example 1

This example shows how to change the name of the first legend entry.

Legend.EntryName(1,"New entry")

Example 2

This example shows an alternative method for changing the name.

Legend.EntryName(1) = "New entry"

 

Used by: AutoLegend object