Thread: legendentries
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Peter T Peter T is offline
external usenet poster
 
Posts: 5,600
Default legendentries

Are you sure your chart has a legend,

If ActiveChart.HasLegend Then

Regards,
Peter T

The following code applied to an embedded chart in a chartsheet fails with
error message 'Unable to get the Legendentries property of the

Legendclass'.
Error # 1004.

For Each le In ActiveChart.Legend.LegendEntries
le.LegendKey.Border.LineStyle = xlNone
Next

Any idea why?