I am working with an existing PPT 2013 template that makes use of Content Placeholders and creating VBA code to modify the charts and textboxes on various slides based of code in Excel.
I am able to edit the chart object by referencing the shapeobject
Set shapeObject = oPPT.ActivePresentation.Slides(slideIndex).Shapes("Content Placeholder 5")
And once referenced, I can access the shapeobject's chart data worksheet and modify the values.
However, I am running into an issue changing the chart title. The following code does not change the title that is visible:
Set myChart = shapeObject.Chart
myChart.HasTitle = True
myChart.Title = myLabel
Are titles handled differently since it is a content placeholder? The code runs without error and if I check the myChart.Title in the immediate window it shows the myLabel text. Yet, I still see the unedited chart title on the slide itself.