views:

133

answers:

1

i have a scatter plot graph

i would like each dot to have a label.

how do i feed in labels through VBA for each dot?

+2  A: 

You're after the ApplyDataLabels method. Make sure you read the documentation, it has a lot of optional parameters.

Sub Example()
    Dim sc As Excel.Series
    For Each sc In Chart2.SeriesCollection
        sc.ApplyDataLabels xlDataLabelsShowValue, True, True, False, True
    Next
End Sub
Oorang