Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code:
ActiveSheet.ChartObjects("chtLine").Activate ActiveChart.ChartArea.Select ActiveChart.SeriesCollection(1).Name = Sheets ("Runnability").Range("AllTitle").Value If Sheets("Runnability").Range("PressTitle").Value < "" Then ActiveChart.SeriesCollection(2).Name = Sheets ("Runnability").Range("PressTitle").Value Else ActiveChart.SeriesCollection(2).Name = "No data" End If The line where it is setting series 2 name to "No data" fail on a line chart with the following error: Unable to set the name property of the Series class This works fine for a Bar chart!!! The only way I know to fix this is to dynamically destroy and re-create the data series for the charts. But, I hate to have to do that. Anyone know another way to work around the error? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 Line Chart - Chart line to go directly to next value | Charts and Charting in Excel | |||
How do I convert a line chart to a vertical line chart in Excel | Charts and Charting in Excel | |||
How to change bar to line in line-column on 2 axes chart in Excel2 | Charts and Charting in Excel | |||
Getting line on line chart to display after creation from Pivot Table | Charts and Charting in Excel | |||
Make a line in a bar chart, and change color of any bars that exceed the line | Excel Discussion (Misc queries) |