Hopefully this is a simple one...
I'm trying to set the errorbar for a chart series with VBA and I'd like to do it without actually selecting the series.
Can anyone tell me why this works:
but this doesn't:
I'm trying to set the errorbar for a chart series with VBA and I'd like to do it without actually selecting the series.
Can anyone tell me why this works:
Code:
Sheets("DAPReport").ChartObjects("MedianDAP").Activate
ActiveChart.SeriesCollection(2).ErrorBar Direction:=xlX, Include:=xlPlusValues, Type:=xlFixedValue, Amount:=45
Code:
Sheets("DAPReport").ChartObjects("MedianDAP")SeriesCollection(2).ErrorBar Direction:=xlX, Include:=xlPlusValues, Type:=xlFixedValue, Amount:=45