So I have a 2d array with 1000 rows and 10 columns. I want to create 10 ranges for each of the 10 columns and then use them as series to make a chart. MY question is, how do I define a range from an array, without using the entire array, just one column in it?
Sub ChartLord()
Dim rows As Long
Dim columns As Integer
Dim mychart As Chart
Dim data As Range
Dim dataset() As Double
rows = ShData.Cells(ShData.rows.Count, 1).End(xlUp).Row
columns = ShData.Cells(1, ShData.columns.Count).End(xlToLeft).Column
'set array range (includes column titles and xAxix column)
dataset = ShData.Range(ShData.Cells(1, 1), ShData.Cells(rows, columns))
For Z = 0 To 10
Set data = ?
Set mychart = shtCharts.Shapes.AddChart2(200, xlColumnClustered, 50 + 300 * Z, 50, 300, 200, 5).Chart
Next Z
End Sub