PC Review


Reply
Thread Tools Rate Thread

Creating custom animations

 
 
willy
Guest
Posts: n/a
 
      31st Mar 2004
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.
 
Reply With Quote
 
 
 
 
Bill Foley
Guest
Posts: n/a
 
      31st Mar 2004
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


--
Bill Foley, Microsoft MVP (PowerPoint)
www.pttinc.com
Check out PPT FAQs at: http://www.rdpslides.com/pptfaq/
Check out Word FAQs at: http://word.mvps.org/FAQs/General/index.htm

"willy" <(E-Mail Removed)> wrote in message
news:169ff01c41734$fcb735a0$(E-Mail Removed)...
> 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.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom animations Newbie Microsoft Powerpoint 1 18th Jan 2010 08:48 AM
Custom Animations Simon Microsoft Powerpoint 10 16th Jul 2009 03:12 PM
custom animations G-bert2301 Microsoft Powerpoint 1 23rd May 2009 12:31 AM
Custom animations Dereksorchard Microsoft Powerpoint 2 12th Nov 2008 06:58 PM
custom animations =?Utf-8?B?d2VsZGF3YWR5YXRoaW5r?= Microsoft Powerpoint 5 12th May 2005 11:44 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:35 PM.