J
jtklepp
Hi.
I have set up a macro where you can type in the name and title of th
chart in a cell, and the range, run the macro and it creates th
chart.
Trouble is that taking the name from a cell is easy:
.ChartTitle.Characters.Text = Sheets("Sheetname").Range("Y26")
But I cannot do this for a range:
ActiveChart.SetSourceData Source:=Sheets("Tables").Range("Y25")
PlotBy:= _
xlRows
The Range in this formula should point to a variable (for instanc
A1:A10) and I want to be able to type that range into the cell (in thi
case Y25).
Is there a way to define a variable that gets the value from the cel
(Y25), and use the variable in the Range object?
Regards,
J
I have set up a macro where you can type in the name and title of th
chart in a cell, and the range, run the macro and it creates th
chart.
Trouble is that taking the name from a cell is easy:
.ChartTitle.Characters.Text = Sheets("Sheetname").Range("Y26")
But I cannot do this for a range:
ActiveChart.SetSourceData Source:=Sheets("Tables").Range("Y25")
PlotBy:= _
xlRows
The Range in this formula should point to a variable (for instanc
A1:A10) and I want to be able to type that range into the cell (in thi
case Y25).
Is there a way to define a variable that gets the value from the cel
(Y25), and use the variable in the Range object?
Regards,
J