Insert Shape into Scatter Chart

vthokienj

Board Regular
Joined
Aug 1, 2011
Messages
103
I am looking to create a chart of type xlXYScatter and insert a shape (e.g. triangle) at each point, then color each shape using RGB. I have yet to find out how to do this. Is this possible in VBA?
Any guidance would be appreciated.

I am only at the point where I have the chart defined and I iterate through each point:

Code:
set thechart = Sheets("mysheet").ChartObjects("mychartname")
v = thechart.Chart.SeriesCollections(1).Values
numPoints = UBound(v,1)

for x = 1 to numPoints

next x

Thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi

Can you just use a marker with the triangle shape?
It would be a simple solution and you'd just need to change the coulours of the markers.

You can do a simple test. Select one marker, change it to triangle, change its size and its colour and see the result.
If you record a macro while doing it, you'll have some code to get you started.
 
Upvote 0

Forum statistics

Threads
1,216,562
Messages
6,131,422
Members
449,651
Latest member
Jacobs22

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