June 7th, 2002, 8:25 pm
Hi Folks, This seems to be an embarassingly simple problem but I can't seem to get the damn thing right. I have a 2d array in VBA, say, Dim dataArray(1 To 100, 1 To 100) as Doubleand I want to plot, in Excel, the data contained in the above array. Say, first column versus the 10th column. How do I do it? I find that the "Chart" & "ChartObject" objects have, through the "SeriesCollection" object, methods such as "NewSeries" & "Add" as means to introduce data to the chart. But the above-mentioned methods only accept "Range" objects. Of course, a not so elegant way might be to dump the data onto a hidden sheet and then re-read it through "Range"....but surely there must be a straight forward solution to this fundamental problem? Any help on the matter will be much appreciated...Thanks.Regards, WB.PS. I have 2 Excel VBA books, and neither addresses my dilemma.