TRaP
Moderator
Inregistrat: acum 7 ani
Postari: 811
|
|
The code below moves all labels for 1 series in my chart to a position way above the series, showing leader lines from the series to the labels.
Sub Chart_Labels_Position()
Dim h, x As Double Dim i, cnt As Integer
With ActiveSheet h = ActiveChart.PlotArea.Height x = h - (8 * h) / 10 cnt = ActiveChart.FullSeriesCollection(1).DataLabels.Count For i = 1 To cnt ActiveChart.FullSeriesCollection(1).Points(i).DataLabel.Top = x 'or you can write a number, like 35 Next i
End With End Sub |
Modificat de TRaP (acum 4 ani)
|
|