How do I apply a Macro to every slide in a presentation

G

Guest

I am trying to run a simple macro on every single slide in a presentation. I
would like to use a macro inorder to do this. This will also be needed to be
applied to other presentations so i am not sure how many slides are in each
presenation.

thanks
 
D

David M. Marcovitz

It depends a lot on what you are trying to do and how you are trying to
do it. Are you recording a macro or writing your own? If you are
recording a macro, it might be tough for you to do what you want to do.
If you are writing your own, you need some code like the following:

Sub DoItForEverySlide()
Dim oSld As Slide
For Each oSld in ActivePresentation.Slides
'Put code for what you want to do to every slide
Next oSld
End Sub

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 

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