pangerankodok
Programmer
Hi all,
I had spreadsheet contain chart.
I want user to be able to paste new data, run the macro, and the new data will be appended into existing chart as new series
I used this code (from macro recorder) and it works.
<code>
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(2).XValues = "R11C2:R19C2"
ActiveChart.SeriesCollection(2).Values = "R12C3:R19C3"
</code>
The problem is how do I change
XValues = "R11C2:R19C2" and Values = "R12C3:R19C3" dynamically, based on user selection?
Thanks, appreciate all your help..
Iman
I had spreadsheet contain chart.
I want user to be able to paste new data, run the macro, and the new data will be appended into existing chart as new series
I used this code (from macro recorder) and it works.
<code>
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(2).XValues = "R11C2:R19C2"
ActiveChart.SeriesCollection(2).Values = "R12C3:R19C3"
</code>
The problem is how do I change
XValues = "R11C2:R19C2" and Values = "R12C3:R19C3" dynamically, based on user selection?
Thanks, appreciate all your help..
Iman