Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the following code colors a point on the chart line red
when I change the 4th line to ActiveChart.SeriesCollection(1).Points(1500).Selec t 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").Sel ect With Selection .MarkerBackgroundColorIndex = 3 .MarkerForegroundColorIndex = xlNone .MarkerStyle = xlSquare .MarkerSize = 5 End With End Sub |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try removing the quotes around "Rowx"
"Paul" wrote: the following code colors a point on the chart line red when I change the 4th line to ActiveChart.SeriesCollection(1).Points(1500).Selec t 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").Sel ect With Selection .MarkerBackgroundColorIndex = 3 .MarkerForegroundColorIndex = xlNone .MarkerStyle = xlSquare .MarkerSize = 5 End With End Sub |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Paul,
ActiveChart.SeriesCollection(1).Points(Rowx).Selec t "Rowx" (in quotes) is treated as a string not a number variable which I think is what you want. HTH "Paul" wrote: the following code colors a point on the chart line red when I change the 4th line to ActiveChart.SeriesCollection(1).Points(1500).Selec t 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").Sel ect With Selection .MarkerBackgroundColorIndex = 3 .MarkerForegroundColorIndex = xlNone .MarkerStyle = xlSquare .MarkerSize = 5 End With End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
add break even point | Charts and Charting in Excel | |||
Data point on line is not over the point/tick in X axis... | Charts and Charting in Excel | |||
X Y Scatter With Point name on each point ? | Charts and Charting in Excel | |||
I need more general XY point to point plotting than XY scatter in | Charts and Charting in Excel | |||
averaging from a fixed point to a non-fixed point? | Excel Programming |