Hello,
I'm trying to change the text legend in a Graphic.
Here's my code :
Code:
Dim vlChart As Graph.Chart
Set vlChart = Me.Graphique2.Object.Application.Chart
Dim vlegend As Legend
Set vlegend = vlChart.Legend
MsgBox "before modification " + vlChart.Application.DataSheet.Range("A0").Value
vlChart.Application.DataSheet.Range("A0").Value = "test"
MsgBox "after modification " + vlChart.Application.DataSheet.Range("A0").Value
vlChart.Refresh
Me.Requery
Me.Refresh
The refreshes don't work.
The MsgBox return the good result after modification, but the graph display keeps the original legend title.
I tried with Legend.LegendEntries(0) without result i don't if it's possible.
Thanks for your help and sorry for my english level, i'm french.