EntryCount Property
The EntryCount property returns the number of plot entries in the legend. Returns a Long. This is a read-only property.
Syntax
object.EntryCount
object.EntryCount =EntryCount
Example
This example shows how to return the number of items in a legend.
Debug.print Legend.EntryCount
Used by: AutoLegend object