Y
yusoon
dear community:
Everytime I update the chart data range, I have to Select i
first:
ActiveSheet.ChartObjects("Chart 1").Select
ActiveChart.SeriesCollection(1).XValues = "=Sheet1!R35C13:R" & iROWS
"C13"
ActiveChart.SeriesCollection(1).Values = "=Sheet1!R35C19:R" & iROWS
"C19"
ActiveChart.SeriesCollection(2).XValues = "=Sheet1!R35C13:R" & iROWS
"C13"
ActiveChart.SeriesCollection(2).Values = "=Sheet1!R35C20:R" & iROWS
"C20"
I tried this but not working:
Sheet("Sheet1").ChartObjects("Chart 1").SeriesCollection(1).XValues
"=Sheet1!R35C13:R" & iROWS & "C13"
Thanks
Everytime I update the chart data range, I have to Select i
first:
ActiveSheet.ChartObjects("Chart 1").Select
ActiveChart.SeriesCollection(1).XValues = "=Sheet1!R35C13:R" & iROWS
"C13"
ActiveChart.SeriesCollection(1).Values = "=Sheet1!R35C19:R" & iROWS
"C19"
ActiveChart.SeriesCollection(2).XValues = "=Sheet1!R35C13:R" & iROWS
"C13"
ActiveChart.SeriesCollection(2).Values = "=Sheet1!R35C20:R" & iROWS
"C20"
I tried this but not working:
Sheet("Sheet1").ChartObjects("Chart 1").SeriesCollection(1).XValues
"=Sheet1!R35C13:R" & iROWS & "C13"
Thanks