Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
Hello all,
I can't position correctly a datalabel on top of one point of a serie on the graph: it appears always on the right of the point. Here is the code: Set oPoint = ActiveChart.SeriesCollection(1).Points(1) oPoint.ApplyDataLabels Type:=xlShowValue oPoint.DataLabel.VerticalAlignment = xlVAlignTop oPoint.DataLabel.HorizontalAlignment = xlHAlignCenter oPoint.DataLabel.Text = True oPoint.DataLabel.Text = "Text to put on top" Any help would be appreciated ... Rad |
#2
![]() |
|||
|
|||
![]()
Hi Rad,
Try this, oPoint.DataLabel.Position = xlLabelPositionAbove Cheers Andy Radixa wrote: Hello all, I can't position correctly a datalabel on top of one point of a serie on the graph: it appears always on the right of the point. Here is the code: Set oPoint = ActiveChart.SeriesCollection(1).Points(1) oPoint.ApplyDataLabels Type:=xlShowValue oPoint.DataLabel.VerticalAlignment = xlVAlignTop oPoint.DataLabel.HorizontalAlignment = xlHAlignCenter oPoint.DataLabel.Text = True oPoint.DataLabel.Text = "Text to put on top" Any help would be appreciated ... Rad -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error bars for a single data point not whole series | Charts and Charting in Excel | |||
I need to shift cells down only to a point w/o disturbing the bot. | Excel Discussion (Misc queries) | |||
decimal point override does not work | Excel Discussion (Misc queries) | |||
Import chart to Power Point and Macro problem | Excel Discussion (Misc queries) | |||
Change datalabel font size for all chartobjects in a row | Charts and Charting in Excel |