G
Guest
The code below is from xl2003. This created a nice chart. There were 5
values in one column cluster. The headers were on row 5 the values on row 8.
Is this possibe to recreate? I've looked through Help, and the object
browser to no avail. The chart looks different, it won't plot by columns,
and I can't seem to move it with VBA. I've tried recording the changes,
chartobject, chartobjects, chartwizard, and more I can't remember.
I feel I am missing something simple.
Any thoughts are appreciated.
With ActiveSheet.Shapes.AddChart(ChartType:=xlColumnClustered, _
Left:=5, _
Top:=Range("B5").End(xlDown).Offset(2, 0).Top, _
Width:=Range(Range("A5"), Range("B5").End(xlToRight)).Width
- 10, _
Height:=Range("B5").End(xlDown).Offset(23, 0).Top =
Range("B5").End(xlDown).Offset(2, 0).Top)
.Chart.SetSourceData
Source:=Union(ActiveSheet.Range(Range("B4"),
Range("C4").End(xlToRight).Offset(0, -1)), ActiveSheet.Range(Range("B8"),
Range("B8").End(xlToRight).Offset(0, -1))), PlotBy:=xlColumns
End With
values in one column cluster. The headers were on row 5 the values on row 8.
Is this possibe to recreate? I've looked through Help, and the object
browser to no avail. The chart looks different, it won't plot by columns,
and I can't seem to move it with VBA. I've tried recording the changes,
chartobject, chartobjects, chartwizard, and more I can't remember.
I feel I am missing something simple.
Any thoughts are appreciated.
With ActiveSheet.Shapes.AddChart(ChartType:=xlColumnClustered, _
Left:=5, _
Top:=Range("B5").End(xlDown).Offset(2, 0).Top, _
Width:=Range(Range("A5"), Range("B5").End(xlToRight)).Width
- 10, _
Height:=Range("B5").End(xlDown).Offset(23, 0).Top =
Range("B5").End(xlDown).Offset(2, 0).Top)
.Chart.SetSourceData
Source:=Union(ActiveSheet.Range(Range("B4"),
Range("C4").End(xlToRight).Offset(0, -1)), ActiveSheet.Range(Range("B8"),
Range("B8").End(xlToRight).Offset(0, -1))), PlotBy:=xlColumns
End With