Hi,
Attached is the snap of my excel which contains charts. Once the new set of datas are inserted i need to update the data range of the graph with updated row number. Currently i am achieving this by the combination of sending global send key event and Region mode. It is working fine. But want this piece of functionality to be done using VBA script.
I tried with this piece of code
GetWorkbook(handle,Nothing).ActiveSheet.ChartObjects(chartName).Chart.SeriesCollection(1).Values= GetWorkbook(handle,Nothing).ActiveSheet.Range(chartRange)
ChartRange i am sending as "='Incident Assignee Breakdown'!$B$5:$D$4986" .
But it is throwing error stating that SeriesCollection(1) is not memeber of Chart object. Can any one help me in resolving this?
@VJR you can throw some light on this.
Attached is the snap of my excel which contains charts. Once the new set of datas are inserted i need to update the data range of the graph with updated row number. Currently i am achieving this by the combination of sending global send key event and Region mode. It is working fine. But want this piece of functionality to be done using VBA script.
I tried with this piece of code
GetWorkbook(handle,Nothing).ActiveSheet.ChartObjects(chartName).Chart.SeriesCollection(1).Values= GetWorkbook(handle,Nothing).ActiveSheet.Range(chartRange)
ChartRange i am sending as "='Incident Assignee Breakdown'!$B$5:$D$4986" .
But it is throwing error stating that SeriesCollection(1) is not memeber of Chart object. Can any one help me in resolving this?
@VJR you can throw some light on this.