ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   How do you set all graph data points to black (multiple series)? (https://www.excelbanter.com/charts-charting-excel/43380-how-do-you-set-all-graph-data-points-black-multiple-series.html)

DamnKiwi

How do you set all graph data points to black (multiple series)?
 
I have multiple series on a chart, all with different marker shapes as
desired. How do I globally set all the data point colors to black without
picking each series in turn and setting a custom color.

Jon Peltier

You can't do it using the native Excel interface, but a little macro
will handle it:

Sub PaintItBlack()
Dim srs As Series
For Each srs In ActiveChart.SeriesCollection
srs.Border.ColorIndex = 1
srs.MarkerBackgroundColorIndex = 1
srs.MarkerForegroundColorIndex = 1
Next
End Sub

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

DamnKiwi wrote:
I have multiple series on a chart, all with different marker shapes as
desired. How do I globally set all the data point colors to black without
picking each series in turn and setting a custom color.



All times are GMT +1. The time now is 08:26 AM.

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