Rowland Hamilton
New Member
People,
When I code using exact ranges, letters and numbers style, I get the split data point result, with only the header row data (row 17) and the totals data (row 22):
Code:
But, when I use numbers for the column references, It does not split the range, but rather charts the entire range B17:C22
Code:
I actually have a code that allows for variable range columns and rows, so I don't want to be stuck with fixed column letters.
What am I doing wrong, here?
Rowland
When I code using exact ranges, letters and numbers style, I get the split data point result, with only the header row data (row 17) and the totals data (row 22):
Code:
Code:
ActiveChart.SetSourceData Source:=Range("B17:C17,B22:C22")
But, when I use numbers for the column references, It does not split the range, but rather charts the entire range B17:C22
Code:
Code:
ActiveChart.SetSourceData Source:=Range(Range(Cells(17, 2), Cells(17, 3)), Range(Cells(22, 2), Cells(22, 3)))
I actually have a code that allows for variable range columns and rows, so I don't want to be stuck with fixed column letters.
What am I doing wrong, here?
Rowland