Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Replace this
mySrs.Points(nPts).DataLabel.Text = mySrs.Name with this: mySrs.Points(nPts).DataLabel.ShowSeriesName = True - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "Steve Mackay" wrote in message ... Sorry to keep posting replies to my own request. I found something close to what I want, but it only gives me the name of my series. I would also like to have the value of the point too. Any ideas? Sub LastPointLabel() Dim mySrs As Series Dim nPts As Long Sheets("Chart").Select For Each mySrs In ActiveChart.SeriesCollection With mySrs nPts = .Points.Count mySrs.Points(nPts).ApplyDataLabels _ Type:=xlDataLabelsShowValue, _ AutoText:=True, LegendKey:=True mySrs.Points(nPts).DataLabel.Text = mySrs.Name End With Next End Sub Thanks Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to change position of chart labels on line chart | Charts and Charting in Excel | |||
labels in line chart | Charts and Charting in Excel | |||
Min, Max Value Labels in Line Chart | Charts and Charting in Excel | |||
Sub-Categories for X-axis labels, line on bar chart? | Charts and Charting in Excel | |||
Can I link timeline labels to a line chart? | Charts and Charting in Excel |