Is there a way to dynamically create the range?

Joined
Apr 12, 2007
Messages
1
Reaction score
0
I'm trying to create a macro that will chart based on any selected range.
Instead of setting the range statically as in the example below, is there a way to have the range be what is selected by the user? Dynamic rather than static.

ActiveChart.SetSourceData Source:=Sheets("Sheet15").Range("A1:D4"), PlotBy _:=xlRows


Thanks
 
Back
Top