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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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/
 
Back
Top