K
Kristina Engdahl
Hi,
I'm trying to add data to a serie using Visual Basic for applications.
The data exist in noncontiguous ranges for both x-values and y-values.
I would like to add several series in this way and have tried the
following:
Dim newSerie As Series
Set newSerie = newChart.SeriesCollection.NewSeries
newSerie.Values = Union(yColumn, yCell)
newSerie.xValues = Union(xColumn, xCell)
I think the problem is that the ranges are noncontiguous but don't
understanf why it doesn't work. It is no problem to add data like this
by hand using the addSeries-function in the Chart-wizarard.
I have also tries the Extend function for the seriesCollection by
first sdding one range and then trying to extend with the other but
don't get how I can specify which serie the new data should be added
to.
I would much appreciate if someone could give me a hint on how to
solve this problem.
Regards,
Kristina
I'm trying to add data to a serie using Visual Basic for applications.
The data exist in noncontiguous ranges for both x-values and y-values.
I would like to add several series in this way and have tried the
following:
Dim newSerie As Series
Set newSerie = newChart.SeriesCollection.NewSeries
newSerie.Values = Union(yColumn, yCell)
newSerie.xValues = Union(xColumn, xCell)
I think the problem is that the ranges are noncontiguous but don't
understanf why it doesn't work. It is no problem to add data like this
by hand using the addSeries-function in the Chart-wizarard.
I have also tries the Extend function for the seriesCollection by
first sdding one range and then trying to extend with the other but
don't get how I can specify which serie the new data should be added
to.
I would much appreciate if someone could give me a hint on how to
solve this problem.
Regards,
Kristina