ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VBA access to a series, after it was assigned to an empty range (https://www.excelbanter.com/excel-programming/440742-vba-access-series-after-assigned-empty-range.html)

Werner Rohrmoser

VBA access to a series, after it was assigned to an empty range
 
Hello,

I'd like to get access to a chart series via vba.
This works fine with
ActiveChart.SeriesCollection(1).Values =
"='" & ActiveWorkbook.Name & "'!" &
Diagramm1.Range("Chart1_Series1").Value
this is a reference to a named range.
So, if I assign the series to a range with values I can change the
series to another range afterwards.
But if I once have assigned a series to an empty range I do not have
access to the chart series any more.
The error message is:"unable to set the values property of the series
object"
Only manually it's possible to reactivate this series, then I can
continue to run vba


Does anyone have a workaround?


Excel XP SP 3
Windows XP SP 3


Regards
Werner




All times are GMT +1. The time now is 04:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com