Hi,

Right now I get a runtime error when modifying my chart through VBA:
Unable to set name property of Series Class.

Here is the code that causes it:
VB Code:
  1. With mychart        
  2.         'plot average
  3.         .SeriesCollection(6).Name = "=""Average"""
  4.         .SeriesCollection(6).Values = "=CSS!R10C" & avgCol & ":R54C" & avgCol
  5.     End With

The name and values of the series collection of my chart is already defined before this code is ran ( by right click chart |source data option).
Is it possible to change the name and values again in VBA? Because this is exactly what I am trying to do, which is causing the run time error.

If it is not possible to change the name and values of the series collection again, then how would I work around this issue? Thanks!