LegendEntries.Item Method

Excel Developer Reference

Returns a single object from a collection.



expression   A variable that represents a LegendEntries object.


Name Required/Optional Data Type Description
Index Required Variant The index number for the object.

Return Value
A LegendEntry object contained by the collection.


This example changes the font for the text of the legend entry at the top of the legend (this is usually the legend for series one) in embedded chart one on Sheet1.

Visual Basic for Applications
  Worksheets("sheet1").ChartObjects(1).Chart _
    .Legend.LegendEntries.Item(1).Font.Italic = True

See Also