Hi all,
I trying to create an embedded chart for which the data are in two non adjacent
columns. this is how I set my data:
That is for this function Y = f(X), my X= "F8:F27" and my Y = "I8:I27" which are not adjacent. but there are data in the columns G,H and J as well.
Then to plot I have:
Unfortunately I'have a plot with other data series in columns G and H as well but not J as it happen is after column I. Then I want to add on the same chart another graph.
Questions:
1) How do you set data source from non adjacent columns?
2) Why do I have th plot of G = f(F), J = f(F) as well when I just want to chart I = f(F)?
3) How do I then add the graph for J = f(F) on the same chart?
Thank you
I trying to create an embedded chart for which the data are in two non adjacent
columns. this is how I set my data:
Code:
Set datarng = Range("F8:F27", "I8:I27")
Then to plot I have:
Code:
With cht
.Type = xlXYScatter
.SetSourceData Source:=datarng, PlotBy:=xlColumns
End With
Questions:
1) How do you set data source from non adjacent columns?
2) Why do I have th plot of G = f(F), J = f(F) as well when I just want to chart I = f(F)?
3) How do I then add the graph for J = f(F) on the same chart?
Thank you