ham.sajjadi
New Member
hi every body.
i have a legend on my chart and i want to list them as text or number in a custom range such as ("ab1:ab17")
i write this snip.but i don't know what the problem is?i am noob
thank u in advance.
here is my legend and chart (attached)
i have a legend on my chart and i want to list them as text or number in a custom range such as ("ab1:ab17")
i write this snip.but i don't know what the problem is?i am noob
Code:
Sub Macro1()
'
' Macro1 Macro
'
'
Dim test As LegendEntries
Set test = ActiveSheet.ChartObjects("Charts1").Chart.legend
Range("ab1:ab17").Value = test
End Sub
thank u in advance.
here is my legend and chart (attached)