Objects

J

John

I am trying to automate the reformating os a 350 slides in
presentation. How do I iterate through evey oblect on every slide and
detemine what that object is (i.e a picture, text box etc). Also is
there a way to detemine if the textbox is the place holder for "title"
on the master
 
S

Steve Rindsberg

I am trying to automate the reformating os a 350 slides in
presentation. How do I iterate through evey oblect on every slide and
detemine what that object is (i.e a picture, text box etc). Also is
there a way to detemine if the textbox is the place holder for "title"
on the master

Visit the PPT FAQ, www.pptfaq.com
Scroll down to the Programming PPT section
The various examples there should get you going.

To visit every slide:

Sub Thing()
Dim oSl as Slide
Dim oSh as Shape

For Each oSl in ActivePresentation.Slides
For Each oSh in oSl.Shapes
Debug.Print oSh.Type
Next
Next

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top