G
Guest
I did a macro record building a chart and got this piece
of code...
..
..
ActiveChart.ApplyCustomType ChartType:=xlBuiltIn,
TypeName:="Line - Column"
ActiveChart.SetSourceData Source:=Sheets
("prodcpu").Range("A1:E20"), PlotBy _
:=xlColumns
ActiveChart.Location Where:=xlLocationAsNewSheet
..
..
I can't use this as a permanent macro because the E20
might be E57(different number of entries) next week. The
A1 will always be the start cell.. NEED CODING TO REPLACE
A1:E20 as some variable Thanks.
of code...
..
..
ActiveChart.ApplyCustomType ChartType:=xlBuiltIn,
TypeName:="Line - Column"
ActiveChart.SetSourceData Source:=Sheets
("prodcpu").Range("A1:E20"), PlotBy _
:=xlColumns
ActiveChart.Location Where:=xlLocationAsNewSheet
..
..
I can't use this as a permanent macro because the E20
might be E57(different number of entries) next week. The
A1 will always be the start cell.. NEED CODING TO REPLACE
A1:E20 as some variable Thanks.