Roger has attended:
Excel VBA Intro Intermediate course
Excel VBA Advanced course
EXCEL Chart names
I want to manipulate some charts in VBA.
As far as I can tell, EXCEL names the charts "chart1", chart2" etc. If I have several charts in a spreadsheet, how can I find out the number that EXCEL has given it?
Thanks
Roger
RE: EXCEL Chart names
Hi Roger, the quickest way to do this is to select the chart and use:
MsgBox ActiveChart.Name
Think about looping through the collection of charts in a workbook testing for a particular chart name and manipulating accordingly.
Hope this helps,
Anthony