HamnaIshaq's avatar
HamnaIshaq
Iron Contributor
Mar 26, 2025
Status:
New

Create a table of contents in PowerPoint using placeholder text

We are modernizing our PowerPoint VBA add-in to Office.js. In our VBA add-in, we are able to generate a table of contents slide with slide numbers and links to those slides by reading the text in each slide's title placeholder.

We have been exploring the PowerPoint preview API PowerPoint.PlaceholderFormat class for this use case. Using the placeholderFormat preview API, we can get the placeholder's type, i.e., determine whether it is a title and, using the textFrame.textRange.text property, get the placeholder's text content.

We still do not have the ability to create a hyperlink. We intend to take a look at the 'bindings' feature when it becomes available to determine if it will meet our needs, but are there other available ways to achieve this?

No CommentsBe the first to comment