ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   change the color of points in 3D surface chart using VBA (https://www.excelbanter.com/charts-charting-excel/19577-change-color-points-3d-surface-chart-using-vba.html)

liontrader

change the color of points in 3D surface chart using VBA
 
I wanna change the color of single points in a 3d surface chart according to
a seperate value for each point (i.e. date, time, price chart with the
surface color representing the volume). I figured it out for 3d column charts
using the sereiesCollection(i).points method but found no solution for a
surface chart.
Any ideas ?

John Mansfield

Liontrader,

For the 3d surface chart, you have to go to the legend key to change the
colors. Try something like this:

ActiveChart.Legend.LegendEntries(1).LegendKey.Inte rior.ColorIndex = 6
ActiveChart.Legend.LegendEntries(2).LegendKey.Inte rior.ColorIndex = 3

----
Regards,
John Mansfield
http://www.pdbook.com



"liontrader" wrote:

I wanna change the color of single points in a 3d surface chart according to
a seperate value for each point (i.e. date, time, price chart with the
surface color representing the volume). I figured it out for 3d column charts
using the sereiesCollection(i).points method but found no solution for a
surface chart.
Any ideas ?



All times are GMT +1. The time now is 08:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com