Change series name in all charts on a worksheet

后端 未结 1 1814
伪装坚强ぢ
伪装坚强ぢ 2021-01-23 12:14

I am trying to loop through each chart on a single worksheet and rename the 3rd series:

With Sheets(\"Actual Traded Points\")
    For Each Chart In .ChartObjects         


        
相关标签:
1条回答
  • 2021-01-23 12:59

    You are actually looping through the ChartObjects, not the Charts. Try:

    For Each co In .ChartObjects
        co.Chart.SeriesCollection(3).name = "Actual Traded Points"
    Next co
    
    0 讨论(0)
提交回复
热议问题