J
Jim S.
Hi,
I'm trying to create a scatter plot using Array's instead
of using Cell's in a worksheet but can't seem to get it to
work. Here's what I'd LIKE to be able to do but it keeps
bombing. Any ideas?
JS
=======
Sub simple_array_table()
Dim myXvalues(1#, 2#, 3#) As Double
Dim myYvalues(4, 2, 4) As Double
Charts.Add
ActiveChart.ChartType = xlXYScatter
ActiveChart.SeriesCollection(1).xvalues = myXvalues
ActiveChart.SeriesCollection(1).Values = myYvalues
End Sub
I'm trying to create a scatter plot using Array's instead
of using Cell's in a worksheet but can't seem to get it to
work. Here's what I'd LIKE to be able to do but it keeps
bombing. Any ideas?
JS
=======
Sub simple_array_table()
Dim myXvalues(1#, 2#, 3#) As Double
Dim myYvalues(4, 2, 4) As Double
Charts.Add
ActiveChart.ChartType = xlXYScatter
ActiveChart.SeriesCollection(1).xvalues = myXvalues
ActiveChart.SeriesCollection(1).Values = myYvalues
End Sub