Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm trying to put values in the a chart legend in excel.

I refer to a few websites & found out the method below but it seems like "Value" is not a member of LegendEntries. MSDN only provide samples of chrt.Legend.LegendEntries(i).Font.blah... which clearly are not helpful at all.

 

For i = 1 To chrt.Legend.LegendEntries.Count()
               chrt.Legend.LegendEntries(i).Value = xws.Range("B" & i + 3).Value
           Next

 

Please advise.

Thank you.

Posted
The legend entries are based on the series names. As far as I know, you cannot edit the legend entries directly; you'll have to change the series names instead.
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...