Format Marker Line Style with Excel VBA 2007

kz9yyc

New Member
Joined
Aug 4, 2007
Messages
11
Hello All,

I want Excel VBA 2007 to format scatter chart data point (marker) line styles.

For example, I have plotted circles in my scatter plot that represent solder bumps on a flip chip IC. These "marker" circles are comprised of two parts--an inner circle (which one may adjust with "marker fill") and the outer circle (which one may adjust with "marker line style").

I want to fill these markers with white color, and change the marker line style to "dashed". In turn, I hope the bumps will appear like hidden edges in an AutoCAD drawing.

To fill with white, I've tried the following:
ActiveChart.SeriesCollection(1).Points(Count).Format.Fill.ForeColor.RGB = RGB(0, 0, 0)

VBA does not fill the circles with white. Perhaps white<> RGB(0,0,0)? If I change RGB values, e.g., RGB(255,0,0), VBA fills the circles with red.

To make the outer circle dashed, I've tried the following:
ActiveChart.SeriesCollection(1).Points(Count).MarkerLineStyle = xlDash

VBA does not like this at all. I've tried alot of variations, but I'm just really guessing on syntax, and VBA didn't like any of them.

I appreciate your help. As a novice user, I hope that I don't offend anyone with descriptions of what may be obvious to the general forum.

It sure seems to me that Microsoft makes alot of changes just for the sake of making changes. As always, they always add a gimmick that is nice, but overall, I prefer 2003 over 2007. I very much miss being able to use the macro recorder to figure out problems like this.

Thanks, and have a good day.
John
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello All,

...To fill with white, I've tried the following:
ActiveChart.SeriesCollection(1).Points(Count).Format.Fill.ForeColor.RGB = RGB(0, 0, 0)

VBA does not fill the circles with white. Perhaps white<> RGB(0,0,0)? If I change RGB values, e.g., RGB(255,0,0), VBA fills the circles with red.

white = RGB(255,255,255)


Sorry I can't help with your main question. I'm here for almost the same reason: How to set the weight of the marker line, that is, the line that forms the edge of the little marker or the x and the + of marker styles 4 and 9?

I'm not concerned at this time with the lines that connect the markers, and I don't want them to appear.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,848
Members
452,948
Latest member
UsmanAli786

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