MS Graph problem
|
Hi
I'm populating a load (c 200 each month) of MS Graphs in a PPT with data from a XLS. So far so easy. The number of data points varies from graph to graph and increments each month. Each graph is a simple line graph, with only the last datapoint having a data label. I thought I would write something that would go to the graph, remove the label from the last data point, insert new data, then add datalabels to the new last datapoint.
But, whilst the following code works (but is only useful if there are alwys only 6 datapoints)
Code:
With oGraph.SeriesCollection(1).Points(6)
.HasDataLabel = False
End With
this code produces OBJECT REQUIRED error on the second line
Code:
With oGraph.SeriesCollection(1).Points.Count
.HasDataLabel = False
End With
Can anyone assist?
|
Last edited by herilane; 05-05-2005 at 05:04 AM.
Reason: [vb] tags make your code easier to read - click Reply on this post to see them in action.
|