To access SeriesCollection() by passing a name, you can:
MsgBox ActiveChart.SeriesCollection("manju").Name
This is possible because the index in SeriesCollection(index) is actually of type Variant , so the compiler works if you pass the String type and try to access it by name or if you pass Long/Integer (or any other type of numeric data) to access the counter.
or repeat the SeriesCollection series, comparing the current name with manju:
For i = 1 to ActiveChart.SeriesCollection.Count If ActiveChart.SeriesCollection(i).name = "manju" Then MsgBox "Found it!" Exit for End if Next
source share