J
Joseph M. Newcomer
I've discovered the VBA documentation is moderately useless; it seems to concentrate on
modifying documents, and simple things do not appear anywhere.
I have a very simple requirement. I need to iterate over every slide of a PowerPoint
presentation, find every word on every slide, and write the words out to a file with the
word and its slide #, e.g., if a slide says
THIS IS AN EXAMPLE
* This is a sample slide
* It has several bulleted points
I want to get, if this were slide 22 of the presentation,
THIS 22
IS 22
AN 22
EXAMPLE 22
This 22
is 22
a 22
sample 22
slide 22
It 22
has 22
several 22
bulleted 22
points 22
I want to find every word in every text box on every slide and write it out as shown.
I can't even find how to do this; every example deals with useless things like changing
slide backgrounds, or adding slides, or other things of no interest to me. But the
simplest concept, iterating over every slide, is not at all obvious, and the next level,
iterating over every window in the slide, is not at all obvious, and the next level,
iterating over every word, is probably simple, since that's simple programming of a loop
to look for whitespace, but getting to the text appears not at all obvious.
Any hints, examples, links, etc. would be appreciated.
I've figured out how to open a file in VBA (trivial) and write text to it (trivial), but
the structure of the document and iterators are not making themselves known.
joe
Joseph M. Newcomer [MVP]
email: (e-mail address removed)
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
modifying documents, and simple things do not appear anywhere.
I have a very simple requirement. I need to iterate over every slide of a PowerPoint
presentation, find every word on every slide, and write the words out to a file with the
word and its slide #, e.g., if a slide says
THIS IS AN EXAMPLE
* This is a sample slide
* It has several bulleted points
I want to get, if this were slide 22 of the presentation,
THIS 22
IS 22
AN 22
EXAMPLE 22
This 22
is 22
a 22
sample 22
slide 22
It 22
has 22
several 22
bulleted 22
points 22
I want to find every word in every text box on every slide and write it out as shown.
I can't even find how to do this; every example deals with useless things like changing
slide backgrounds, or adding slides, or other things of no interest to me. But the
simplest concept, iterating over every slide, is not at all obvious, and the next level,
iterating over every window in the slide, is not at all obvious, and the next level,
iterating over every word, is probably simple, since that's simple programming of a loop
to look for whitespace, but getting to the text appears not at all obvious.
Any hints, examples, links, etc. would be appreciated.
I've figured out how to open a file in VBA (trivial) and write text to it (trivial), but
the structure of the document and iterators are not making themselves known.
joe
Joseph M. Newcomer [MVP]
email: (e-mail address removed)
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm