I'm probably having a bug in my Macro-Recorder since when I try to record a change of color in the xlvalues axis, that is not recorded. What I need to do is to set a gradient radial color with 2 different shades of grey and different transparency.
I'm using this code to set my chart up:
ActiveSheet.Shapes.AddChart.Select
With ActiveChart
.ChartType = xlRadar
.SetSourceData Source:=Range(StartCell, StopCell) ' Those contain a range of interesting data
With .SeriesCollection(1)
.Name = "=""Line 1"""
.Format.Line.Weight = 1.5
End With
With .SeriesCollection(2)
.Name = "=""Line 2"""
.Format.Line.Weight = 1.5
.Format.Line.DashStyle = msoLineDash
End With
.SetElement (msoElementChartTitleAboveChart)
.ChartTitle.Text = Left(Cells(StartCell.Row, 1).Text, 2) & "." & Mid(Cells(StartCell.Row, 1).Text, 3, 1) & " GHz"
With .Axes(xlValue)
.TickLabels.NumberFormat = "# ""dB"""
.Border.ColorIndex = 3 ' <- This is yet to be modified
End With
End With
How do I do that? I thought all that could be made in excel, could also be programmatically done in vba...
this
related? – user2140173.Border.ColorIndex
works just fine changing the color... Only I have to set it to a grey gradient and not to red ( = 3) – Noldor13088415
instead of3
- cause 15 is grey – user2140173