Extract text and the Slide ID associated with the text for all slides in a PPT presentation

I need to extract all the text from a PPT file while retaining the Slide ID for the slide the text is from. So for each paragraph or portion of text that is retrieved, I need to also retrieve the Slide ID of the slide that paragraph or portion appears on.

Hi Robert,


You can extract all the text from presentation. Please visit this article link for your further reference. In the article shared, we are extracting text from entire presentation slides on slide by slide basis by traversing through each shape on a given slide.

Many Thanks,

Thanks for the reply. When I paste the code listed (VB version), I get an Intellisense error on the ParagraphsCollection of “Type ‘ParagraphCollection’ is not defined”.

Hi Robert,


I have attached the sample application for your kind reference. I used the same code as shared in online documentation and it compiled with a success. Please share, if you need any further help in this regard.

Many Thanks,