Marker Borders "Marker Line" removing in VBA

Joined
Jul 28, 2011
Messages
13
I am trying to set the fill on different data series in a scatterplot and I don't want there to be any coloured border. I recorded a macro to get rid of it, but it doesn't do anything

the macro gives me this:
ActiveChart.SeriesCollection(1).Select
Selection.Format.Line.Visible = msoFalse


I think that doesn't work because it gets confused with the line of the series i.e. the line that connects dots. So is there any way to specifically select the marker line?

I tried Selection.Format.Border.LineStyle or Selection.Border.Weight etc. still doesn't work... for some reason that still only changes the line not the marker line.

Also tried Selection.Border.LineStyle = xlLineStyleNone but that doesn't work.

I figured out that if I make the selection an individual point instead of the series, it would work to say Format.Line, but that doesn't modify the legend.


I have tried to do this so many times, and I don't understand how this could possibly be so complicated. I have looked all over the internet to find how to do this and nothing works.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
setting Selection.MarkerForegroundColor = -4142
looks like it sets the border to white or something, which is a reasonable alternative since you can't usually see it except when points overlap
 
Upvote 0
setting Selection.MarkerForegroundColor = -4142
looks like it sets the border to white or something, which is a reasonable alternative since you can't usually see it except when points overlap

Hello, I had the same problem, and the command line you suggested almost worked for me, but it gave my markers a blurry look. But I kept looking and found this, for excel 2010, that removes the marker line:

Code:
Selection.MarkerForegroundColorIndex = -4142

where the number -4142 is the value of the constant xlColorIndexNone.
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,597
Members
449,038
Latest member
Arbind kumar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top