Name
series
.ErrorBars
Synopsis
Returns the ErrorBars
collection for a series. Use the returned object to remove error bars from a series, as shown by the following code:
Sub RemoveErrorBars( ) Dim chrt As Chart, sr As Series ' Get a chart. Set chrt = ActiveChart ' Get first series Set sr = chrt.SeriesCollection(1) ' Remove the error bars added by AddErrorBars. sr.ErrorBars.Delete End Sub
Get Programming Excel with VBA and .NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.