macroppt123
06-01-2011, 06:31 AM
Hi,
I am having a hard time giving a name to a chart. Hence the below copy paste code does not recognize the chart as the chart does not have a name.
slidenum = 10
'copy_chart(sheet, chart_name, slide, aheight, awidth, atop, aleft,lockaspect,vscale)
copy_chart "HFI", "HFI Apr-10 Apr-11", slidenum, 170, 160, 105, 70, msoFalse, 1
I tried the below code to give the chart a name but in vain.
ActiveChart.Parent.Name = "HFI Apr-10 Apr-11"
The Name box on the left next to the formula bar has a value of 12 when I click on the chart.
I tried clicking shift and giving a name in the name box but the chart needs to be created as a chart sheet.
What do you suggest I do? Create the chart as a chart sheet?
Thanks for your help.
Best Regards,
macroppt123
I am having a hard time giving a name to a chart. Hence the below copy paste code does not recognize the chart as the chart does not have a name.
slidenum = 10
'copy_chart(sheet, chart_name, slide, aheight, awidth, atop, aleft,lockaspect,vscale)
copy_chart "HFI", "HFI Apr-10 Apr-11", slidenum, 170, 160, 105, 70, msoFalse, 1
I tried the below code to give the chart a name but in vain.
ActiveChart.Parent.Name = "HFI Apr-10 Apr-11"
The Name box on the left next to the formula bar has a value of 12 when I click on the chart.
I tried clicking shift and giving a name in the name box but the chart needs to be created as a chart sheet.
What do you suggest I do? Create the chart as a chart sheet?
Thanks for your help.
Best Regards,
macroppt123