View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
SpeeD72[_2_] SpeeD72[_2_] is offline
external usenet poster
 
Posts: 5
Default ActiveChart.SeriesCollection(1).Points(3).Select ERROR

Hi.

I need to apply the same color to the bars in a graph (via VBA),
wether the graph has 3 bars or 7 bars.

The problem that i face is that when the point (bar) doens´t exists
excel gives back an error:
ActiveChart.SeriesCollection(1).Points(3).Select in case of poínt 3
dont exists.

Is there a way to teste if the point exists, to only apply the
programing in that case?

Thanks a lot!!!

Jorge