Dear Mr Excel,
I have a SeriesCollection in my chart. I can access its points by:
Dim TSer
For Each TSer In Sheets("Chart1").SeriesCollection
Debug.Print TSer.Points.Count
Next
and Sheets("Chart1").SeriesCollection.count is 1.
But if I delete a data (not graph) from Sheets("Chart1"), the Sheets("Chart1").SeriesCollection.count is still 1!!!
and I have a run-time error 1004 in my code and I cann't access Series properties such as Point, Name and........
Any idea to solve the error?
How can I understand the Series has data or not?
Best Regads,
I have a SeriesCollection in my chart. I can access its points by:
Dim TSer
For Each TSer In Sheets("Chart1").SeriesCollection
Debug.Print TSer.Points.Count
Next
and Sheets("Chart1").SeriesCollection.count is 1.
But if I delete a data (not graph) from Sheets("Chart1"), the Sheets("Chart1").SeriesCollection.count is still 1!!!
and I have a run-time error 1004 in my code and I cann't access Series properties such as Point, Name and........
Any idea to solve the error?
How can I understand the Series has data or not?
Best Regads,