Creating custom animations

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

willy

Please help! I've been trying to create a custom
animation by recording a macro, which contains a series of
moves, rotations, resizes, etc. I've encountered two
major issues using this method. First, the playback of
the macro occurs so quickly that the effects of the macro
are undetectable. Secondly, I would like to know if there
is a way to not display the sizing handles of selected
objects. Thanks for sharing your knowledge.
 
PowerPoint VBA can access a "sleep" command. Put the following line in your
"Declarations" of your module:

Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

The to use the command, insert the "Sleep" command with the number of
milliseconds you want to pause the next line of code. For example, here is
a macro that plays a sound, pauses for 800 milliseconds, shows a message
box, then when the user clicks "OK" moves to the next slide. Since the
sound takes a little time to play, I need to pause (Sleep) the macro:

Private Sub cmdCorrect_Click()
ActivePresentation.Slides(1).Shapes("CorrectAnswer").ActionSettings(ppMouseC
lick).SoundEffect.Play
Sleep (800)
MsgBox "You are correct. Let's try another question.", _
vbOKOnly, "Review Questions"
SlideShowWindows(1).View.Next
End Sub
 
Back
Top