Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hello there, I've added a chart (point XY) to my worksheet with has a data series i it. I am used to change the properties of that series collection with a VBA macro like the following: Code ------------------- ActiveChart.SeriesCollection(1).XValues = "B2:B20" ActiveChart.SeriesCollection(1).Values = "D2:D20" ------------------- This works fine for me as long as there are visible datapoints of tha series collection in the chart. If I set the source range of thi collection to an area where there are no data points, my main proble occours. I cannot access the propertys of the series collection anymore with VB macros. Therefore I cannot set the source range back to an area wit contains datapoints. I have already tried to delete the series and add a new one like: Code ------------------- ActiveChart.SeriesCollection(1).Delete ActiveChart.SeriesCollection.NewSeries ------------------- But I cannot use the method Delete on the "empty" series collectio either. It seems like there is no series collection anymore (for VBA) if i doesn't contain data points, but in Excel itself it is still present. How can I fix this problem and change the porperties of a serie collection, if the .Value-range does not have a data point in it? I hope I could make myself clear, because I'm not a native englis speaker. Thanks in advance, Parit -- Parit ----------------------------------------------------------------------- Parity's Profile: http://www.excelforum.com/member.php...fo&userid=2502 View this thread: http://www.excelforum.com/showthread.php?threadid=38553 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SeriesCollection Values Property Oddity | Charts and Charting in Excel | |||
Dynamically Change Row Count Using SeriesCollection(n).Values | Charts and Charting in Excel | |||
Strange behavior Chart.SeriesCollection(n).Values property | Excel Programming | |||
Setting SeriesCollection values in Excel 2000 | Excel Programming | |||
Problem with setting values for SeriesCollection | Excel Programming |