Insert Shape into Scatter Chart

vthokienj

Board Regular
Joined
Aug 1, 2011
Messages
105
Office Version
  1. 365
Platform
  1. Windows
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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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
Thank you for the solution. This is exactly what my program needed.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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