ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Selecting no color for a graphed series (https://www.excelbanter.com/charts-charting-excel/136166-selecting-no-color-graphed-series.html)

Brad

Selecting no color for a graphed series
 
I created a toggle button and assigned a small program to it to toggle Y
error bars on and off for a plotted series on a chart. It works great except
I notice that there are little voids on another plotted line on the chart
anywhere it intersects the whited out high-low error bars.

So, can a "no color" choice be selected, and would this work? I have
..ColorIndex = 2 now for whiting out the high low error bars.

My thanks in advance for any direction here.

Brad



Andy Pope

Selecting no color for a graphed series
 
Hi,

Doesn't look like the error bars have the option of no colour.
Try a routine along the lines of

With ActiveChart
With .SeriesCollection(1)
.HasErrorBars = Not .HasErrorBars
If .HasErrorBars Then
.ErrorBars.Border.ColorIndex = 2
End If
End With
End With

Cheers
Andy

"Brad" wrote in message
...
I created a toggle button and assigned a small program to it to toggle Y
error bars on and off for a plotted series on a chart. It works great
except I notice that there are little voids on another plotted line on the
chart anywhere it intersects the whited out high-low error bars.

So, can a "no color" choice be selected, and would this work? I have
.ColorIndex = 2 now for whiting out the high low error bars.

My thanks in advance for any direction here.

Brad




All times are GMT +1. The time now is 12:49 PM.

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