I have a line graph. I want to put a call out on the last point on the chart. I can get it to put a data point (just the % of the point) but not a call out.
what works to get the data point on the graph is below. this macro selects the last point on the graph and adds the data label.
what would be the syntax for the .ApplyDataLabels portion that would put the call out bubble instead of just a data label
what works to get the data point on the graph is below. this macro selects the last point on the graph and adds the data label.
VBA Code:
Sub z6_fix_callouts()
Dim menckPoints As Points
Dim I As Integer
Dim NumPoints As Long
'****open tab and chart****
Sheets("Alaska Epi Curve").Select
ActiveSheet.ChartObjects("Chart 4").Activate
'****select last point on graph****
Set menckPoints = ActiveChart.FullSeriesCollection(7).Points
menckPoints(menckPoints.Count).Select
'****add data label****
NumPoints = menckPoints.Count
ActiveChart.FullSeriesCollection(7).Points(NumPoints).[B][COLOR=rgb(184, 49, 47)]ApplyDataLabels[/COLOR][/B]
End Sub
what would be the syntax for the .ApplyDataLabels portion that would put the call out bubble instead of just a data label