Marco_Polo
New Member
- Joined
- May 17, 2017
- Messages
- 1
I am trying to create a macro that will amend all the markers within my chart to be exactly the same style, shape, size etc. also removing connecting lines.
I have gotten most of the way to what I am trying to achieve with the code below:
However, I cannot figure out a way to amend the marker line width. Every piece of code I have found so far just appears to change the connecting line width rather than marker line width. I am a VBA novice and so far have just pieced together other bits of code I have found through forums, so any assistance would be greatly appreciated.
I have gotten most of the way to what I am trying to achieve with the code below:
PHP:
Sub fixchart()
Dim i As Long, j As Long
i = ActiveChart.SeriesCollection.Count
For j = 1 To i
With ActiveChart.SeriesCollection(j)
.MarkerStyle = 2
.MarkerSize = 6
.MarkerForegroundColor = RGB (0, 0, 0)
.MarkerBackgroundColor = RGB(255, 255, 255)
.Border.LineStyle = xlNone
End With
Next j
End Sub
However, I cannot figure out a way to amend the marker line width. Every piece of code I have found so far just appears to change the connecting line width rather than marker line width. I am a VBA novice and so far have just pieced together other bits of code I have found through forums, so any assistance would be greatly appreciated.