Article ID: 113795
Article Last Modified on 10/11/2006
ActiveChart.SeriesCollection(2).Points(4).DataLabel.SelectHowever, if the label is attached to a filled radar series, you must use the following instead:
Application.ExecuteExcel4Macro "SELECT(""Text S2P4"")"
Note that the double quotation marks inside the parentheses are necessary
because the method will remove a complete set when the command is executed.
Type of Radar Chart Description
--------------------------------------------------
Wireframe Lines connect the points but
are not filled.
Filled All lines connect the points
and a fill pattern is
applied such that a polygon
is formed, with the series
forming the perimeter of the
polygon.
In the Microsoft Excel ChartWizard, only the type 6 radar chart is a filled
radar chart (all other types of radar chart are wireframes). You cannot mix
a wireframe and a filled radar series in the same chart.
ActiveChart.SeriesCollection(2).Points(4).DataLabel.SelectIf you run this line of code when the second series is a filled radar series, you will receive the error message The code will run correctly if the series is any other type of series, including a wireframe radar series.
Sub MoveDataLabel()
' Select the fifth point (P5) of the second series (S2).
' Normally, you would use:
'
' ActiveChart.SeriesCollection(2).Points(5).DataLabel.Select
'
' to do this, but this method does not work with a filled radar
' chart in Microsoft Excel 5.0.
Application.ExecuteExcel4Macro "SELECT(""Text S2P5"")"
'Change the selection's (the label's) Left property.
Selection.Left = 20
'Change the selection's (the label's) Top property.
Selection.Top = 20
End Sub
Additional query words: 5.00a 5.00c XL5
Keywords: kbprogramming KB113795