Selecting objects for macro animations

  • Thread starter Thread starter willy
  • Start date Start date
W

willy

Hi Bill,
I want to thank you for your response to my posting
(Creating custom animations-Mar 31, 7:29) on the
PowerPoint community newsgroup site. The information you
provided on using the sleep command is exactly what I
needed. The animation looks great. I should say, it
looks great when I run the macro while in the edit mode,
however, it does not run at all during the show. I'm sure
this is because of the method I used in selecting the
objects to animate while creating the macro. The
following line shows how a typical object was selected, in
terms of the macro:

ActiveWindow.Selection.SlideRange.Shapes("Rectangle
7").Select

Can you please suggest another way of defining the objects
I want to animate that will allow the macro to run during
the show? Thanks again for sharing your knowledge.
 
Because objects cannot be selected in Slide Show View,
ActiveWindow.Selection does not work. You will have to refer to your
shapes by name or number. If they are on the current slide, you can
choose:

ActivePresentation.SlideShowWindow.View.Slide.Shapes(ShapeNameOrNumber)

If they are on another slide, you can use:

ActivePresentation.Slides(SlideNameOrNumber).Shapes(ShapeNameOrNumber)

Replace the SlideNameOrNumber and ShapeNameOrNumber with the actual name
(in quotes) or number of the slide or shape.

Check out my Web site (Example 8-7) for naming slides and shapes. Check
out Example 6-6 (among others) for doing stuff to shapes.

http://www.loyola.edu/education/PowerfulPowerPoint/

--David

--
David M. Marcovitz, Ph.D.
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
Back
Top