red point

P

Paul

the following code colors a point on the chart line red
when I change the 4th line to

ActiveChart.SeriesCollection(1).Points(1500).Select

the same line below contains the variable Rowx and it does
not work. what did I do wrong????

Sub redpoint()

Rowx = [bf44] - 792

ActiveSheet.ChartObjects("Chart 23").Activate
ActiveChart.SeriesCollection(1).Points("Rowx").Select

With Selection
.MarkerBackgroundColorIndex = 3
.MarkerForegroundColorIndex = xlNone
.MarkerStyle = xlSquare
.MarkerSize = 5
End With
End Sub
 
G

Guest

Paul,

ActiveChart.SeriesCollection(1).Points(Rowx).Select


"Rowx" (in quotes) is treated as a string not a number variable which I
think is what you want.

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top