![]() |
|
#12
|
||||
|
||||
|
The macro works on a chart, not a sheet. Record a macro selecting the sheet and then the chart. Copy the code here and I'll show you how to tweak it.
Developer tab, Controls section, Insert dropdown: choose top left button (Form Controls, (Button, Form Control). Then click on the sheet, an Assign Macro dialogue box pops up: choose the macro from the list, Click OK. Quote:
Code:
ActiveChart.FullSeriesCollection(1).LeaderLines.Format.Line.ForeColor.RGB = vbRed
ActiveChart.FullSeriesCollection(1).LeaderLines.Format.Line.ForeColor.RGB = RGB(23, 185, 65)
ActiveChart.FullSeriesCollection(1).LeaderLines.Format.Line.ForeColor.RGB = 11817066
Code:
.Color = 10605937 .ForeColor.RGB = RGB(46, 218, 46) |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to set specific axis values in graphs | Esaylikepie | Excel | 0 | 10-16-2016 04:31 AM |
Format Chart X axis - inconsistent values
|
TimTDP | Excel | 2 | 12-01-2015 02:56 AM |
X axis does not show Years from data
|
MARENG | Excel | 8 | 01-20-2015 10:45 AM |
| Secondry Axis overlapping in bar chart dual axis in Powerpoint 2010 | sharath_ms | PowerPoint | 0 | 07-08-2013 10:06 PM |
| how do I add data values in Col A into X axis on bar graph? | hazz | Excel | 1 | 04-27-2010 01:42 PM |