I have an Excel worksheet with a table that contains columns for project name, x, y, size in order to create a bubble graph.
I would like it to change the Data labels to be equal to the respective project name but how do I do that? I've searched on the web for solutions but neither of them with succes.
Here's my data:
- Chart name: Chart 1
- Table name: Table (This one have headers and I'm only searching for the range within the table (data body range).
Here's my code which gives me the error 91:
Sub InsertLabelnameBubble()
ActiveChart.FullSeriesCollection(1).DataLabels.Select
For i = 1 To Range("Table").Rows.Count
ActiveChart.FullSeriesCollection(1).Points(i).DataLabel.Select
Selection.Formula = Range("Table").Cells(i, 1)
Next i
End Sub
Here's a screenshot of my project.
Where you can see that it uses the Y column (Expected project potential) as the data label text. What I would like it to do is that it should take it from the first column in my table (Project #).

ActiveSheet.ListObjects("Table").DataBodyRange(i, 1)- Pᴇʜ