emranali1989
New Member
- Joined
- Jun 15, 2020
- Messages
- 7
- Office Version
- 2010
- Platform
- Windows
I would like to create the macro which will format the selected "DATA LABELS" in chart in powerpoint. Below is my code. But the problem is Im not able to write code for selected "Data Labels". Please assist
Sub testSelection2()
Dim shp As Shape
Dim count As Integer
Dim left_count As Double
Dim Selected_Series As Integer
Dim PPoint As Integer
Set shp = ActiveWindow.Selection.ShapeRange(1)
Selection.DataLabel.Format.TextFrame2.TextRange.Font.Size = 12
End Sub
Sub testSelection2()
Dim shp As Shape
Dim count As Integer
Dim left_count As Double
Dim Selected_Series As Integer
Dim PPoint As Integer
Set shp = ActiveWindow.Selection.ShapeRange(1)
Selection.DataLabel.Format.TextFrame2.TextRange.Font.Size = 12
End Sub