<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Andrew May's WebLog : PowerPoint</title><link>http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx</link><description>Tags: PowerPoint</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>PowerPoint: Launching Other Applications with Command Line Switches</title><link>http://blogs.msdn.com/andrew_may/archive/2005/01/28/362746.aspx</link><pubDate>Fri, 28 Jan 2005 21:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:362746</guid><dc:creator>Andrew May</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/362746.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=362746</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=362746</wfw:comment><description>&lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Here's something I meant to mention a while back: did you know that when you set a shape's action setting to launch a program, you can pass command line switches to that program?&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;This is something I stumbled across, and there doesn't seem to be any mention of it in the &lt;/font&gt;&lt;a href="http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/vbapp11/html/WelcomePowerPointVBA_HV01135784.asp"&gt;&lt;font face="Verdana" size="2"&gt;PowerPoint 2003 VBA Reference&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;, so until the next update I'm posting the information here.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;You can set PowerPoint to perform certain actions, including starting other programs, based on user interaction with a given shape. You do this by specifying a shape's action settings. Each shape can have two actions: &lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;One PowerPoint performs when the user clicks the shape.&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;One PowerPoint performs when the user moves the mouse over the shape.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;If you specify that PowerPoint should launch another application as one of a shape's action settings, you can also include any command line switches you want PowerPoint to pass to the target application. &lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Take a look at the code below. It assigns an action setting to the selected shape. The code selects the action PowerPoint performs when the shape is clicked, and sets two of that action's properties. The &lt;b style="mso-bidi-font-weight: normal"&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbapp11/html/ppproAction1_HV05191983.asp"&gt;Action&lt;/a&gt;&lt;/b&gt; property specifies which action to perform; in this case, run a program. The &lt;b style="mso-bidi-font-weight: normal"&gt;&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbapp11/html/ppproRun1_HV05193572.asp"&gt;Run&lt;/a&gt;&lt;/b&gt; property represents the program name, as well as any command line switches. In this example, we're passing the "/sidenote" command. During a presentation, when the user clicks on the shape, PowerPoint launches OneNote as a new side note.&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;font face="Courier New"&gt;&lt;font size="2"&gt;Sub OpenSideNote()&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;font face="Courier New"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;With ActiveWindow.Selection.ShapeRange(1) _&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;font face="Courier New"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;.ActionSettings.Item(ppMouseClick)&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;font face="Courier New"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;.Action = ppActionRunProgram&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;font face="Courier New"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;.Run = "onenote.exe /sidenote"&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;font face="Courier New"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;End With&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;font face="Courier New"&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;font face="Courier New" size="2"&gt;End Sub&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;(Wondering what other command line switches are available for OneNote? Oh look, I just happened to write &lt;/font&gt;&lt;a href="http://www.msdn.microsoft.com/office/understanding/onenote/default.aspx?pull=/library/en-us/odc_on2003_ta/html/odc_on_clswitches.asp"&gt;&lt;font face="Verdana" size="2"&gt;an article about that very subject&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;. How's that for cross-promotion?)&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;For the code-adverse of you out there, you can also do this through the user interface:&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Right-click the shape, and select &lt;span class="Bold"&gt;&lt;strong&gt;Action Settings&lt;/strong&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;On the &lt;span class="Bold"&gt;&lt;strong&gt;Mouse Click &lt;/strong&gt;&lt;/span&gt;or &lt;span class="Bold"&gt;&lt;strong&gt;Mouse Over &lt;/strong&gt;&lt;/span&gt;tab, select the &lt;span class="Bold"&gt;&lt;strong&gt;Run program &lt;/strong&gt;&lt;/span&gt;button.&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Enter the application name and command line switches in the text box below the Run &lt;span class="Bold"&gt;&lt;strong&gt;program&lt;/strong&gt;&lt;/span&gt; radio button.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Now all I have to do is update the PowerPoint VBA Reference...&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=362746" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item><item><title>PowerPoint: A Codeless One-Slide Timer (Part 2 of 2)</title><link>http://blogs.msdn.com/andrew_may/archive/2005/01/23/359052.aspx</link><pubDate>Sun, 23 Jan 2005 19:04:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:359052</guid><dc:creator>Andrew May</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/359052.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=359052</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=359052</wfw:comment><description>&lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;span style="COLOR: blue"&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2005/01/23/359048.aspx"&gt;&lt;font face="Verdana" size="2"&gt;Read part one here&lt;/font&gt;&lt;/a&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Next, we need to create custom animation that controls the order in which PowerPoint displays the shapes on the slide. &lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;1.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;From the &lt;span class="Bold"&gt;&lt;strong&gt;Slide Show&lt;/strong&gt;&lt;/span&gt; menu, click &lt;span class="Bold"&gt;&lt;strong&gt;Custom Animation&lt;/strong&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;2.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Select the shape that displays the second-highest time (in our case, the shape displaying 0:50). In the &lt;span class="Bold"&gt;&lt;strong&gt;Custom Animation&lt;/strong&gt;&lt;/span&gt; task pane, click &lt;span class="Bold"&gt;&lt;strong&gt;Add Effect&lt;/strong&gt;&lt;/span&gt;, select Entrance, and then click on &lt;span class="Bold"&gt;&lt;strong&gt;Appear&lt;/strong&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;3.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;The animation should now be listed in the animation list in the task pane.&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;4.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Select the animation, and in the Start drop-down, select &lt;span class="Bold"&gt;&lt;strong&gt;After Previous&lt;/strong&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;5.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Click on the drop-down arrow next to the animation name, and then click &lt;span class="Bold"&gt;&lt;strong&gt;Timing&lt;/strong&gt;&lt;/span&gt;. In the animation dialog box, on the &lt;span class="Bold"&gt;&lt;strong&gt;Timing&lt;/strong&gt;&lt;/span&gt; tab, for &lt;span class="Bold"&gt;&lt;strong&gt;Delay&lt;/strong&gt;&lt;/span&gt; enter 10.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Repeat this for each shape, in descending order of the time each shape displays. So now you've got the shapes appearing at 10 seconds intervals, in the order of most time displayed (1:00) to least time (0:00). Note that you don't assign an animation to the first shape, because you want that shape to be visible as soon as PowerPoint displays the slide.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Now stack all the shapes on top of each other. That way, as each shape appears, it covers the previous shape. Because all the shapes appear the same, except for the time displayed on each, during a slide show they'll appear as a single shape counting down the seconds left on the time.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;So our timer counts down the seconds correctly, but we also want to move to the next slide when the timer is done. For this, we'll use a slide transition, just as Geetesh does in his timer. We'll set the slide transition to occur one second after the timer finishes its count.&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l0 level1 lfo2"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;1.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;On the &lt;span class="Bold"&gt;&lt;strong&gt;Slide Show&lt;/strong&gt;&lt;/span&gt; menu, click &lt;span class="Bold"&gt;&lt;strong&gt;Slide Transition&lt;/strong&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;2.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;In the &lt;span class="Bold"&gt;&lt;strong&gt;Slide Transition&lt;/strong&gt;&lt;/span&gt; task pane, select the type of transition you want. &lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;3.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Under &lt;span class="Bold"&gt;&lt;strong&gt;Advance slide&lt;/strong&gt;&lt;/span&gt;, check &lt;span class="Bold"&gt;&lt;strong&gt;Automatically after&lt;/strong&gt;&lt;/span&gt; and enter '01:10' in the text box. Make sure &lt;span class="Bold"&gt;&lt;strong&gt;On mouse click&lt;/strong&gt;&lt;/span&gt; is not checked.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;We're done. When PowerPoint displays the slide, the animation sequence starts, displaying each shape at ten second intervals. At the same time, the slide transition is counting down. PowerPoint displays the final counter shape (0:00) one second before it executes the transition to the next slide.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;As you can see, if you wanted a longer timer, say a five or ten minutes, or wanted to count off one-second intervals, creating the timer could get tedious real fast. The main advantage to this approach, as well as &lt;/font&gt;&lt;a href="http://www.indezine.com/products/powerpoint/cool/countdown01.html"&gt;&lt;font face="Verdana" size="2"&gt;Geetesh's&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;, is that it doesn't rely on anything other than PowerPoint's native functionality. Which means you can move the presentation to another machine and not have to worry about stuff like whether the security setting will allow code to run.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;The disadvantages, of course, are that it's somewhat laborious to set up, and it's not very flexible. Because it relies on slide transition functionality, the timer has to start as soon as PowerPoint displays the slide. I couldn't think of a way to make the slide transition dependant on user interaction, which would have enabled me to let the user start the timer whenever they wanted. But for short timers where you don't want to (or can't) use VBA code or add-ins, it could come in handy.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;As I mentioned in the last entry, the &lt;/font&gt;&lt;a href="http://www.rdpslides.com/pptfaq/FULLFAQ.htm"&gt;&lt;font face="Verdana" size="2"&gt;PowerPoint FAQ&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; lists several timers available as VBA code or add-ins.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Speaking of time, it's probably past time I got back to my &lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:mswterms w:st="on"&gt;SharePoint&lt;/st1:mswterms&gt; research…&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=359052" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category></item><item><title>PowerPoint: A Codeless One-Slide Timer (Part 1 of 2)</title><link>http://blogs.msdn.com/andrew_may/archive/2005/01/23/359048.aspx</link><pubDate>Sun, 23 Jan 2005 19:01:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:359048</guid><dc:creator>Andrew May</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/359048.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=359048</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=359048</wfw:comment><description>&lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Yesterday, a co-worker asked a few of us in PowerPoint user assistance how to create a timer to use during a presentation break. The only stipulation was that the timer had to use PowerPoint's native capabilities: she wanted something she could give to other people without having to include instructions you'd need if the timer was an ActiveX control or relied on VBA code.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;One of the other team members referred her to the &lt;/font&gt;&lt;a href="http://www.rdpslides.com/pptfaq/FULLFAQ.htm#Clocks%20and%20timers%20for%20PowerPoint"&gt;&lt;font face="Verdana" size="2"&gt;Clocks and Timers&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; section of the &lt;/font&gt;&lt;a href="http://www.rdpslides.com/pptfaq/FULLFAQ.htm"&gt;&lt;font face="Verdana" size="2"&gt;PowerPoint FAQ&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;. Sure enough, there was an &lt;/font&gt;&lt;a href="http://www.indezine.com/products/powerpoint/cool/countdown01.html"&gt;&lt;font face="Verdana" size="2"&gt;example of a timer using slide transitions&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;, courtesy of Geetesh Bajaj.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;And it got me thinking: Geetesh uses multiple slides to create a timer, but couldn't you create a timer using shape animation and a single slide? Creating a single-slide timer was primarily an aesthetic preference. The timer functions the same either way. I just preferred to have it on a single slide, so that when I'm in &lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:City w:st="on"&gt;&lt;st1:place w:st="on"&gt;Normal&lt;/st1:place&gt;&lt;/st1:City&gt; or Slide Sorter view, the timer doesn't appear as a long series of slides. Having everything on a single slide also makes moving the timer, or pasting it into another presentation, easier.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;(Creating it was also a nice distraction from all the &lt;/font&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2005/01/11/350798.aspx"&gt;&lt;font face="Verdana" size="2"&gt;SharePoint studying&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; I've been doing. But that's neither here nor there.)&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Anyway, here's how you can create a single-slide, codeless timer:&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;As an example, let's say you wanted to create a one-minute timer, with the visual display updated every ten seconds. First, add a new slide to the presentation. Then, create a shape that represents your timer, like so:&lt;/font&gt;&lt;/p&gt; &lt;p class="Figure" style="MARGIN: 3pt 0in 9pt"&gt;&lt;?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /&gt;&lt;v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/v:path&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&amp;nbsp; &lt;img src="http://ajmay2.home.comcast.net/blogart/ppt_no_code_timer_1.gif" /&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Next, copy and paste the shape back onto the same slide. Change the text so it displays ten seconds less. Repeat this process until you have shapes that count down to zero:&lt;/font&gt;&lt;/p&gt;&lt;img src="http://ajmay2.home.comcast.net/blogart/ppt_no_code_timer_2.gif" /&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Now, let's make sure the z-order of the shapes is correct. The z-order basically refers to the order in which shapes are layered on the slide. We want the shapes stacked in order of increasing time, with the one-minute shape on the bottom. Think of it this way:&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;img src="http://ajmay2.home.comcast.net/blogart/ppt_no_code_timer_3.gif" /&gt;&amp;nbsp; &lt;p&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;(Tip: Don’t actually stack the shapes on top of each other yet. That'll make the shapes to hard to work with.)&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Here's how we can explicitly set the z-order:&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Right-click the shape with the most time displaying (in our case, that's the one-minute shape), point to &lt;span class="Bold"&gt;&lt;strong&gt;Order&lt;/strong&gt;&lt;/span&gt;, and click &lt;span class="Bold"&gt;&lt;strong&gt;Bring to Front&lt;/strong&gt;&lt;/span&gt;. This moves that shape to the top of the z-order stack. Repeat this process with the shape displaying the next most time, and so on.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;So now we have our shapes in the proper z-order. Next, we need to animate them so that PowerPoint displays them in the proper sequence, and at the proper intervals. Then we need to add a slide transition for when the timer hits zero. &lt;span style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;All of which we’ll do in the &lt;/span&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2005/01/23/359052.aspx"&gt;next entry&lt;/a&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=359048" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category></item><item><title>PowerPoint: Using Tags to Store Custom Data</title><link>http://blogs.msdn.com/andrew_may/archive/2004/12/07/277696.aspx</link><pubDate>Tue, 07 Dec 2004 17:44:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:277696</guid><dc:creator>Andrew May</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/277696.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=277696</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=277696</wfw:comment><description>&lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;So, after &lt;/font&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/10/29/249671.aspx"&gt;&lt;font face="Verdana" size="2"&gt;blogging several times&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt; about the Tags functionality in Publisher, I finally took a look in the PowerPoint object model, and guess what I found? However, the tags functionality is implemented a little differently in PowerPoint than in Publisher, so it deserves some discussion.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;To review: Tags are, in essence, generic holding bins where you can store whatever information you want to persist with the presentation. Each tag is comprised of a name, and a value. Tags are one of the rare pieces of the PowerPoint object model that doesn't have a counterpart in the application's user interface. Tags are a totally programmatic feature: you can't get or set &lt;b style="mso-bidi-font-weight: normal"&gt;Tags&lt;/b&gt; objects except through code. So unless you explicitly expose them in the user interface (by displaying them in a dialog box, for example) or the user writes code to find them, the average user isn't going to be aware of them at all. Which makes them an ideal place to store information you don't want the average (that is, non-programming) user to have easy access to, such as:&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Attribute information that isn’t already persisted in any of the available object model properties.&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Variable data needed for programmatic functionality you’ve written.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;In PowerPoint, the Tags object is a child of the Presentation, Slide, SlideRange, Shape, and ShapeRange objects, so you can use it to store custom information at the presentation, slide, or shape level.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Each tag has a name, and a value. In Publisher, the tag value took a Variant data type; in PowerPoint, you’re limited to a String data type for the tag value. The biggest difference between how the two application implement tags, however, is in how you create and access individual tags. Unlike in Publisher, the Tags object in PowerPoint is not a collection; there are no individual Tag objects in the PowerPoint object model. Rather, you get and set the name and value of the individual tags by using methods of the Tags object itself. Here’s how tags are structured in the PowerPoint object model:&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;img src="http://www.officezealot.com/john/PPT_Tags_OM.gif" /&gt; &lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;As you can see, Name and Value are methods of the Tags object, rather than properties of an individual Tag object (as they are in Publisher). Personally, I find this makes them a little more cumbersome to work with, but the PowerPoint object model has been around a lot longer than the Publisher object model, and the Tags object has been there since at least PowerPoint 2000, so I’m willing to cut it a little slack.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Here’s another aspect of the Tags object that may be less than intuitive: to update the value of a tag, you call the Tags.Add method, passing the name of the existing tag, and the new value. This effectively overwrites the tag and updates the value.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;So let’s look at a code example. Here’s one I swiped from the &lt;/font&gt;&lt;a href="http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/vbapp11/html/WelcomePowerPointVBA_HV01135784.asp"&gt;&lt;font face="Verdana" size="2"&gt;PowerPoint Visual Basic Reference&lt;/font&gt;&lt;/a&gt;&lt;font face="Verdana" size="2"&gt;. It tests the value of the &lt;i style="mso-bidi-font-style: normal"&gt;Region&lt;/i&gt; tag for all slides in the active presentation, and hides any slides that don't pertain to the East Coast (denoted by the value "east").&lt;/font&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;code&gt;&lt;font size="2"&gt;For Each s In ActivePresentation.Slides&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/code&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;code&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;If s.Tags("region") &amp;lt;&amp;gt; "east" Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/code&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;code&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;s.SlideShowTransition.Hidden = True&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/code&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;code&gt;&lt;font size="2"&gt;&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;End If&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/code&gt;&lt;/p&gt; &lt;p class="Code" style="MARGIN: 0in 0in 3pt"&gt;&lt;code&gt;&lt;font size="2"&gt;Next&lt;/font&gt;&lt;/code&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;As I noted in my entries about tags in Publisher, you can come up with some pretty simple, yet powerful solutions by using tags to store custom information where you need it, then writing procedures that use that information. What kind of information, and what do you use it for? Whatever makes the most sense for your business practices. &lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Think about it.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=277696" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item><item><title>PowerPoint: No Action Settings for Group Shapes</title><link>http://blogs.msdn.com/andrew_may/archive/2004/11/11/256071.aspx</link><pubDate>Fri, 12 Nov 2004 00:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:256071</guid><dc:creator>Andrew May</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/256071.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=256071</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=256071</wfw:comment><description>&lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Here's something I just found out the other day: did you know that you can't assign action settings to grouped shapes? But there is a fairly easy work-around.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;I discovered as I was using PowerPoint's drawing tools to create a grouped shape that I intended to use as a custom button to launch a macro. Turns out there is no way, either programmatically or through the user interface, for me to assign an action setting to the finished group shape. This includes actions like jumps to other slides, other presentations, launching programs, running macros, or hyperlinks.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;So I talked with a few people here that have been working on PowerPoint far longer (and most likely, far more productively) than I, and it seems this has always been the case, and was by design. But no one could tell me what the thinking behind this design choice. However, one of our wonderful and resourceful support people was able to suggest a work-around (thanks, John!), which I now impart to you. Basically, you create the grouped shape, and then cut and paste it back into the slide as an embedded enhanced metafile:&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;1.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Create the grouped shape as you want it. (To group the shape, select all the shapes, right-click and point to &lt;span class="Bold"&gt;&lt;strong&gt;Grouping&lt;/strong&gt;&lt;/span&gt;, and then select &lt;span class="Bold"&gt;&lt;strong&gt;Group&lt;/strong&gt;&lt;/span&gt;.)&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;2.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;With the grouped shape selected, from the &lt;span class="Bold"&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/span&gt;, menu click &lt;span class="Bold"&gt;&lt;strong&gt;Cut&lt;/strong&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;3.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;From the &lt;span class="Bold"&gt;&lt;strong&gt;Edit&lt;/strong&gt;&lt;/span&gt; menu, select &lt;span class="Bold"&gt;&lt;strong&gt;Paste Special&lt;/strong&gt;&lt;/span&gt;. In the &lt;span class="Bold"&gt;&lt;strong&gt;Paste Special&lt;/strong&gt;&lt;/span&gt; dialog box, make sure the &lt;span class="Bold"&gt;&lt;strong&gt;Paste&lt;/strong&gt;&lt;/span&gt; radio button is selected, and then select &lt;span class="Bold"&gt;&lt;strong&gt;Picture (Enhanced Metafile)&lt;/strong&gt;&lt;/span&gt;, and click &lt;span class="Bold"&gt;&lt;strong&gt;OK&lt;/strong&gt;&lt;/span&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="mso-bidi-font-family: Verdana; mso-fareast-font-family: Verdana"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font face="Verdana" size="2"&gt;4.&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Assign action settings to the metafile shape.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;One nice thing about this approach is that the resulting enhanced metafile is a vector graphic. So you can scale it (resize it larger or smaller) without it looking pixilated or jagged.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Here are some other random thoughts about this approach:&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;If you're working with small shapes (as I was), you might find that the shapes don't move exactly where you want to position them, but instead act like they're snapping to some invisible underlying grid. This is because they &lt;i style="mso-bidi-font-style: normal"&gt;are&lt;/i&gt; snapping to an invisible underlying grid. If this is the case, zoom in closer to make fine adjustments easier to control, and do one of the following:&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Disable objects snapping to the grid. From the &lt;b style="mso-bidi-font-weight: normal"&gt;View&lt;/b&gt; menu, click &lt;b style="mso-bidi-font-weight: normal"&gt;Grids and Guides&lt;/b&gt;, deselect &lt;b style="mso-bidi-font-weight: normal"&gt;Snap objects to grid&lt;/b&gt;, and then click &lt;b style="mso-bidi-font-weight: normal"&gt;OK&lt;/b&gt;.&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;&lt;font size="2"&gt;·&lt;/font&gt;&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font face="Verdana" size="2"&gt;Temporarily disable objects snapping to the grid. Hold down the ALT key as you use the mouse to drag the edge or corner of the shape one display pixel at a time.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;One drawback of the metafile work-around is that, once you've turned your grouped shape into a metafile, you can't edit the individual shapes. So if you later decide you wanted one of the shapes to be red and not blue, you have to start all over again. So you might want to copy the shape, instead of cutting it. That way, you still have the original grouped shape to edit if you want to make changes later on. You can always position the grouped shape on the work area around the slide, so it doesn't show up when you put the presentation in slide show mode.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;You could also turn the grouped shape into a jpg, gif or bmp, using a program like Paint. Just take a screen shot of the slide, paste it into your image program, and crop it down to just the grouped shape. However, if you do it this way, the resulting image is not a vector image. So it may not be as sharp, and will likely become pixilated if you expand its size.&lt;/font&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=256071" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category></item><item><title>PowerPoint: Pause a Sound File During Slide Show</title><link>http://blogs.msdn.com/andrew_may/archive/2004/09/29/235899.aspx</link><pubDate>Wed, 29 Sep 2004 21:48:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:235899</guid><dc:creator>Andrew May</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/235899.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=235899</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=235899</wfw:comment><description>&lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Here’s one of my rare post concerning things you can do without using code.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;I got an email the other day from a user who had read my blog entries about inserting sound files using code. He had an issue he was looking for help with. He didn’t seem all the comfortable with programming, but was willing to learn some coding if it solved his problem.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Here’s what he wanted to do: He had recorded narration for a slide as an mp3 file. He knew how to insert the file, and set it to play automatically, but he also wanted to have a Pause/Play button on the slide itself, so he could pause the narration at will during the slide show.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;I knew how I’d set that up in code, but it seemed like a reasonable thing that users would want to be able to do without resorting to automation. So I went to our ever-helpful end-user writers, and sure enough, you can do what he wanted to without writing a single line of code. After they showed me how, I wrote up instructions and mailed them to him. Then I figured I might as well post them on my blog, in case anyone else was trying to do something similar. So here they are.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;When you break it down, here’s what we actually want to do:&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Insert narration that plays automatically when the slide loads.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="BulletedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;span style="mso-list: Ignore"&gt;·&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Add a button that lets you pause the narration during the slide show.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;So here are the four general tasks we need to set this up:&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;1.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Insert the sound file on the slide, and set it to play automatically.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;2.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Add a ‘Pause’ button to the slide.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;3.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Add a custom animation to the slide that pauses the sound file.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;4.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Set the custom animation so that it’s triggered when you click the Pause button.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;First, let’s insert the sound file:&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo3"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;1.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;From the &lt;b style="mso-bidi-font-weight: normal"&gt;Insert &lt;/b&gt;menu, select &lt;b style="mso-bidi-font-weight: normal"&gt;Movies and Sounds&lt;/b&gt;, and then select the option for the sound you want to insert (&lt;b style="mso-bidi-font-weight: normal"&gt;Sound From File&lt;/b&gt;, etc.).&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo3"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;2.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;We want the narration to start when the slide loads, so click &lt;b style="mso-bidi-font-weight: normal"&gt;Automatically &lt;/b&gt;when prompted.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Next, add the action button:&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo4"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;1.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;From the &lt;b style="mso-bidi-font-weight: normal"&gt;Slide Show &lt;/b&gt;menu, select &lt;b style="mso-bidi-font-weight: normal"&gt;Action Buttons&lt;/b&gt;, and then click the button you want to use. &lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo4"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;2.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Draw the button on your slide. &lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo4"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;3.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;When the &lt;b style="mso-bidi-font-weight: normal"&gt;Action Settings &lt;/b&gt;dialog box appears, under &lt;b style="mso-bidi-font-weight: normal"&gt;Action on Click&lt;/b&gt;, select &lt;b style="mso-bidi-font-weight: normal"&gt;None&lt;/b&gt;, and then click &lt;b style="mso-bidi-font-weight: normal"&gt;OK&lt;/b&gt;.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Next, add a custom animation to your slide:&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo5"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;1.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;From the &lt;b style="mso-bidi-font-weight: normal"&gt;Slide Show&lt;/b&gt; menu, click &lt;b style="mso-bidi-font-weight: normal"&gt;Custom Animation&lt;/b&gt;. &lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="TextinList1" style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;The &lt;b style="mso-bidi-font-weight: normal"&gt;Custom Animation&lt;/b&gt; pane appears. &lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo5"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;2.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;In the &lt;b style="mso-bidi-font-weight: normal"&gt;Custom Animation&lt;/b&gt; pane, select &lt;b style="mso-bidi-font-weight: normal"&gt;Add Effect&lt;/b&gt;, then &lt;b style="mso-bidi-font-weight: normal"&gt;Sound Actions&lt;/b&gt;, and then &lt;b style="mso-bidi-font-weight: normal"&gt;Pause&lt;/b&gt;. This inserts a Pause animation into your animation sequence.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;Finally, set the Pause animation to be triggered when the user clicks your ‘Pause’ action button:&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo6"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;1.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Select the Pause animation in the &lt;b style="mso-bidi-font-weight: normal"&gt;Custom Animation&lt;/b&gt; pane.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo6"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;2.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Right-click and select &lt;b style="mso-bidi-font-weight: normal"&gt;Timing&lt;/b&gt;. &lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="NumberedList1" style="MARGIN: 3pt 0in 3pt 0.25in; mso-list: l1 level1 lfo6"&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;span style="mso-list: Ignore"&gt;3.&lt;span style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;On the &lt;b style="mso-bidi-font-weight: normal"&gt;Timing&lt;/b&gt; tab, click &lt;b style="mso-bidi-font-weight: normal"&gt;Triggers&lt;/b&gt;. Then click &lt;b style="mso-bidi-font-weight: normal"&gt;Start effect on click of&lt;/b&gt;, and select the action button from the pull-down list. Click &lt;b style="mso-bidi-font-weight: normal"&gt;OK&lt;/b&gt;.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;That should do it. Now, when the sound file plays, clicking the action button will pause the file playback. Clicking the button again starts the sound file from where it was paused.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;The end-user writers were also kind enough to suggest some online articles and trainings that cover these issues in more detail.&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;span style="COLOR: windowtext"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;Here’s an article that’s about triggers:&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;a href="http://office.microsoft.com/en-us/assistance/HA010873001033.aspx"&gt;&lt;font face="Verdana" size="2"&gt;Use triggers to create an interactive slide show in PowerPoint&lt;/font&gt;&lt;/a&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;span style="COLOR: windowtext"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;This course covers the new sounds options that were available in 2003:&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;a href="http://office.microsoft.com/training/Training.aspx?AssetID=RC010713231033&amp;amp;CTT=6&amp;amp;Origin=RC010713231033"&gt;&lt;font face="Verdana" size="2"&gt;Playing Sound&lt;/font&gt;&lt;/a&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;span style="COLOR: windowtext"&gt;&lt;font size="2"&gt;&lt;font face="Verdana"&gt;While the next link is to a course focused on video, its second lesson tells how to set up the button panel to play the video (sound, in this case).&lt;o:p&gt;&lt;/o:p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;a href="http://office.microsoft.com/training/training.aspx?AssetID=RC010738341033"&gt;&lt;font face="Verdana" size="2"&gt;Playing movies&lt;/font&gt;&lt;/a&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;font face="Verdana" size="2"&gt;And, as always, you can also check out the public PowerPoint newsgroup. It’s a great place to get quick answers for stuff like this.&lt;/font&gt;&lt;/p&gt; &lt;p class="Text" style="MARGIN: 3pt 0in"&gt;&lt;a href="http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.powerpoint&amp;amp;lang=en&amp;amp;cr=US"&gt;&lt;font face="Verdana" size="2"&gt;PowerPoint General Questions&lt;/font&gt;&lt;/a&gt;&lt;span style="FONT-SIZE: 12pt; COLOR: windowtext; FONT-FAMILY: 'Times New Roman'"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=235899" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category></item><item><title>Animating Shapes in PowerPoint 2000 and 97 (Part 4 of 4)</title><link>http://blogs.msdn.com/andrew_may/archive/2004/06/22/162719.aspx</link><pubDate>Tue, 22 Jun 2004 18:53:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:162719</guid><dc:creator>Andrew May</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/162719.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=162719</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=162719</wfw:comment><description>&lt;FONT face=Verdana size=2&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;(Previous entries in this series: &lt;SPAN class=MsoHyperlink&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/17/158703.aspx"&gt;part one&lt;/A&gt;&lt;/SPAN&gt;, &lt;SPAN class=MsoHyperlink&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/18/159474.aspx"&gt;part two&lt;/A&gt;&lt;/SPAN&gt;, and &lt;SPAN class=MsoHyperlink&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/21/161537.aspx"&gt;part three&lt;/A&gt;&lt;/SPAN&gt;.)&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;/FONT&gt;&lt;FONT face=Verdana size=4&gt;Creating Animation Effects for Media and OLE Objects&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;For audio and video files inserted as media objects, not only can you set the shape&amp;#8217;s animation effect, as with other shapes, but you can customize how the file plays as part of its animation effect as well. The &lt;SPAN class=Bold&gt;&lt;STRONG&gt;PlaySettings&lt;/STRONG&gt;&lt;/SPAN&gt; object contains properties that enable you to customize how sound and movies play when they are animated. Table 1 lists these properties, and what you use each for.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Label style="MARGIN: 3pt 0in"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;Table 1. Selected PlaySettings object properties.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;TABLE class=MsoTableGrid style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" cellSpacing=0 cellPadding=0 border=1&gt;
&lt;TBODY&gt;
&lt;TR style="mso-yfti-irow: 0; mso-yfti-firstrow: yes"&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Label style="MARGIN: 3pt 0in"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;PlaySettings property&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Label style="MARGIN: 3pt 0in"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;Definition&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow: 1"&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;HideWhileNotPlaying&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Set whether to display the media object when it is not playing.&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow: 2"&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;LoopUntilStopped&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Set the file to play continuously until it&amp;#8217;s stopped by the user clicking it, or the next slide transition.&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow: 3"&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;PauseAnimation&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Set whether the animation sequence for the slide is paused until the file completes playing.&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow: 4"&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;PlayOnEntry&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Set whether the file plays when the file&amp;#8217;s entry effect occurs as part of the slide&amp;#8217;s animation sequence.&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow: 5"&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;RewindMovie&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;For video files, set whether the first frame of the movie is automatically redisplayed as soon as the movie has finished playing.&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR style="mso-yfti-irow: 6; mso-yfti-lastrow: yes"&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;StopAfterSlides&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: #ece9d8; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: #ece9d8; WIDTH: 3.2in; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" vAlign=top width=307&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Set the file to stop playing after a specified number of slides have been displayed or when the media clip comes to an end, whichever happens first.&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P class=TableSpacingAfter style="MARGIN: 3pt 0in 0pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Verdana size=1&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;You can also specify that an OLE object perform one of its verbs as part of its animation effect. Use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ActionVerb&lt;/STRONG&gt;&lt;/SPAN&gt; property to specify which of its verbs the OLE object performs.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Each &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; that represents an OLE object contains a &lt;SPAN class=Bold&gt;&lt;STRONG&gt;OLEFormat&lt;/STRONG&gt;&lt;/SPAN&gt; object. The actions an OLE object can perform are contained in the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ObjectVerbs&lt;/STRONG&gt;&lt;/SPAN&gt; collection, which is a child of the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;OLEFormat&lt;/STRONG&gt;&lt;/SPAN&gt; object. For example, the following code returns the verbs available for the specified OLE object:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim intCount As Integer&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With ActivePresentation.Slides(5).Shapes("AVI File") _&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.OLEFormat.ObjectVerbs&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;For intCount = 1 To .Count&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Debug.Print intCount &amp;amp; "&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;" &amp;amp; .Item(intCount)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Next&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Note that if you insert an audio or video file as an OLE object, rather than as a media object, you cannot set &lt;SPAN class=Bold&gt;&lt;STRONG&gt;PlaySettings&lt;/STRONG&gt;&lt;/SPAN&gt; properties for that shape that apply to media objects.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;To determine if a given shape is a media or OLE object, use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/SPAN&gt; property of the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; object. This property returns an &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoShapeType&lt;/STRONG&gt;&lt;/SPAN&gt; constant, such as &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoEmbeddedOLEObject&lt;/STRONG&gt;&lt;/SPAN&gt;, or &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoLinkedOLEObject&lt;/STRONG&gt;&lt;/SPAN&gt; or &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoMedia&lt;/STRONG&gt;&lt;/SPAN&gt;. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;For more information on adding media and OLE objects to your presentations programmatically, see &lt;/FONT&gt;&lt;A href="http://msdn.microsoft.com/office/understanding/powerpoint/techarticles/default.aspx?pull=/library/en-us/odc_pp2003_ta/html/odc_pp_insertmedia.asp"&gt;&lt;FONT face=Verdana size=2&gt;Adding Multimedia to a PowerPoint 2003 Presentation&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;H4 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=5&gt;Object Model Maps&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The following diagrams detail the structure of the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings&lt;/STRONG&gt;&lt;/SPAN&gt; object model section.&lt;/FONT&gt;&lt;/P&gt;&lt;IMG src="http://ajmay2.home.comcast.net/blogart/ODC_PP_AnimationSettings_1.gif"&gt; 
&lt;P class=Figure style="MARGIN: 3pt 0in 9pt"&gt;&lt;?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /&gt;&lt;v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"&gt;&lt;v:stroke joinstyle="miter"&gt;&lt;/v:stroke&gt;&lt;v:formulas&gt;&lt;v:f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 1 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum 0 0 @1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @2 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @3 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @0 0 1"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @6 1 2"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelWidth"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @8 21600 0"&gt;&lt;/v:f&gt;&lt;v:f eqn="prod @7 21600 pixelHeight"&gt;&lt;/v:f&gt;&lt;v:f eqn="sum @10 21600 0"&gt;&lt;/v:f&gt;&lt;/v:formulas&gt;&lt;v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"&gt;&lt;/v:path&gt;&lt;o:lock aspectratio="t" v:ext="edit"&gt;&lt;/o:lock&gt;&lt;/v:shapetype&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Label style="MARGIN: 3pt 0in"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;Figure 1. The AnimationSettings Object&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;IMG src="http://ajmay2.home.comcast.net/blogart/ODC_PP_AnimationSettings_2.gif"&gt; 
&lt;P class=Figure style="MARGIN: 3pt 0in 9pt"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Label style="MARGIN: 3pt 0in"&gt;&lt;STRONG&gt;&lt;FONT face=Verdana size=2&gt;Figure 2. The PlaySettings and SoundEffect Objects&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;So there you go. As you might have guessed, about half way through writing these entries, I realized I had a full-blown article on my hands. So I&amp;#8217;ll probably roll these entries together, clean &amp;#8216;em up, and submit them as a single article for the &lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:place w:st="on"&gt;&lt;st1:PlaceName w:st="on"&gt;Office&lt;/st1:PlaceName&gt; &lt;st1:PlaceName w:st="on"&gt;Developer&lt;/st1:PlaceName&gt; &lt;st1:PlaceType w:st="on"&gt;Center&lt;/st1:PlaceType&gt;&lt;/st1:place&gt;. But it may be awhile until the finished, polished article appears on MSDN, so in the meantime, here&amp;#8217;s the information in draft form.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=162719" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item><item><title>Animating Shapes in PowerPoint 2000 and 97 (Part 3 of 4)</title><link>http://blogs.msdn.com/andrew_may/archive/2004/06/21/161537.aspx</link><pubDate>Mon, 21 Jun 2004 17:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:161537</guid><dc:creator>Andrew May</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/161537.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=161537</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=161537</wfw:comment><description>&lt;FONT face=Verdana size=2&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;Today, we talking about build effects. If you&amp;#8217;re just joining us, you can find the first two parts of this series &lt;SPAN class=MsoHyperlink&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/17/158703.aspx"&gt;here&lt;/A&gt;&lt;/SPAN&gt; and &lt;SPAN class=MsoHyperlink&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/18/159474.aspx"&gt;here&lt;/A&gt;&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;/FONT&gt;&lt;FONT face=Verdana size=4&gt;Creating Build Animation Effects for Text and Charts&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;As mentioned earlier, you can create a special type of animation effect for text and chart objects. For these types of shapes, you can specify a build animation, in &lt;SPAN style="COLOR: windowtext"&gt;which sub-objects of the shape are animated sequentially so that they combine, or build, to display the complete shape.&lt;/SPAN&gt; For example, suppose you have a single text box that contains five bullet points. You can specify that each bullet point enter the slide individually.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ChartUnitEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property for chart shapes, or the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextLevelEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property for text boxes, to specify a Shape object&amp;#8217;s &lt;SPAN class=Italic&gt;&lt;EM&gt;build level&lt;/EM&gt;&lt;/SPAN&gt;; this refers to the lowest level of sub-objects at which you want to assign the effect. For example, for a text box effect with a build level of &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateBySecondLevel&lt;/STRONG&gt;&lt;/SPAN&gt;, each first and second level bullet point, or paragraph, would be animated separately. Third, fourth, and fifth level paragraphs would be animated at the same time as the second level paragraph above them.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;By default, the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ChartUnitEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property is set to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateByChartAllAtOnce&lt;/STRONG&gt;&lt;/SPAN&gt;, and the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextLevelEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property is set to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateByLevelNone&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana&gt;&lt;FONT size=2&gt;&lt;SPAN style="COLOR: windowtext"&gt;In addition, for text you can use the &lt;/SPAN&gt;&lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextUnitEffect&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: windowtext"&gt; property to specify the level at which you want PowerPoint to animate the text &lt;/SPAN&gt;&lt;SPAN class=Italic&gt;&lt;EM&gt;within&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: windowtext"&gt; each paragraph: by character, word, or paragraph. By default, the &lt;/SPAN&gt;&lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextUnitEffect&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: windowtext"&gt; property is set to &lt;/SPAN&gt;&lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateByParagraph&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: windowtext"&gt;.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Finally, you can use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimateTextInReverse&lt;/STRONG&gt;&lt;/SPAN&gt; property to have PowerPoint animate your text build in reverse order, last point first, first point last. For example, if you constructed a slide listing the top ten reasons for something, or the top ten finalists in a contest, you might want to display the list in reverse order.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The following example creates a new slide in the active presentation, and adds a title and three paragraphs, or bullet points. The code sets the title to be animated character-by-character, and uses a color scheme to set the dim color for the title once its animation concludes. For the body text, the code sets the build level to the first level, meaning that the second level paragraph appears on the slide at the same time as the first level paragraph above it. The code also sets the dim color for the body text paragraphs.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With ActivePresentation.Slides.Add(2, ppLayoutText).Shapes&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .Item(1)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.TextFrame.TextRange.Text = "Title"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .AnimationSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Animate = msoTrue&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.TextLevelEffect = ppAnimateByAllLevels&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.TextUnitEffect = ppAnimateByCharacter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AfterEffect = ppAfterEffectDim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;.DimColor.SchemeColor = ppShadow&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .Item(2)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .TextFrame.TextRange&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Text = "This is the first level heading" &amp;amp; vbCrLf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.InsertAfter "This is the second level heading" &amp;amp; vbCrLf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;.InsertAfter "This is another first level heading"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(1, 1).IndentLevel = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(2, 1).IndentLevel = 2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(3, 1).IndentLevel = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .AnimationSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Animate = msoTrue&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.TextLevelEffect = ppAnimateByFirstLevel&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AfterEffect = ppAfterEffectDim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.DimColor.RGB = RGB(100, 150, 130)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;To determine if a given shape is a chart, placeholder or text box, use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/SPAN&gt; property of the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; object. This property returns an &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoShapeType&lt;/STRONG&gt;&lt;/SPAN&gt; constant, such as &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoChart&lt;/STRONG&gt;&lt;/SPAN&gt;, or &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoPlaceholder&lt;/STRONG&gt;&lt;/SPAN&gt; or &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoTextBox&lt;/STRONG&gt;&lt;/SPAN&gt;. Placeholder shapes contain a &lt;SPAN class=Bold&gt;&lt;STRONG&gt;PlaceholderFormat&lt;/STRONG&gt;&lt;/SPAN&gt; child object, which in turn includes a &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Type&lt;/STRONG&gt;&lt;/SPAN&gt; property that identifies what kind of placeholder the shape is.&lt;/FONT&gt;&lt;/P&gt;
&lt;H6&gt;&lt;FONT face=Verdana size=2&gt;Assigning Indent Levels to Text&lt;/FONT&gt;&lt;/H6&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Because you assign build effects to a shape&amp;#8217;s text based on the &lt;SPAN class=Italic&gt;&lt;EM&gt;indent&lt;/EM&gt;&lt;/SPAN&gt; levels of the text paragraphs, such as first-level, second-level, etc., it&amp;#8217;s worth discussing how to specify the indent level for text.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Each &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; has a &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextFrame&lt;/STRONG&gt;&lt;/SPAN&gt; object, which in turn has a &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextRange&lt;/STRONG&gt;&lt;/SPAN&gt; object that contains all the text in that shape. You can then use various methods of the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextRange&lt;/STRONG&gt;&lt;/SPAN&gt; object to return other &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextRange&lt;/STRONG&gt;&lt;/SPAN&gt; objects that represent various subset of the text in the shape, such as paragraphs, sentences, lines, runs, words, or characters. The &lt;SPAN class=Bold&gt;&lt;STRONG&gt;IndentLevel&lt;/STRONG&gt;&lt;/SPAN&gt; property of a given &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextRange&lt;/STRONG&gt;&lt;/SPAN&gt; returns or sets the indent level assigned to that text.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;You can specify one indent level per paragraph. If you assign an indent level to a text range that is a sub-set of a paragraph, such as a single sentence or character run, that indent level is applied to the entire paragraph. If you assign an indent level to a text range that encompasses text in multiple paragraphs, then each of those paragraphs is assigned the specified indent level. For example, if you change the indent level of a sentence, word, or run in a second-level paragraph to 3, then the indent level for the entire paragraph is set to 3.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Because the objects returned by the various &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextRange&lt;/STRONG&gt;&lt;/SPAN&gt; methods are &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextRange&lt;/STRONG&gt;&lt;/SPAN&gt; objects themselves, they have all the methods and properties of that type. For example, &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextFrame.TextRange.Paragraphs.Count&lt;/STRONG&gt;&lt;/SPAN&gt; returns the number of paragraphs contained in a shape&amp;#8217;s text frame. Use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Paragraphs&lt;/STRONG&gt;&lt;/SPAN&gt; method to set the indent level of your paragraphs.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The following code example adds four paragraphs, or bullet points, to a shape on a slide. It then uses the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Paragraphs&lt;/STRONG&gt;&lt;/SPAN&gt; method to individually return and set the indent level of each of those paragraphs.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With objShape.TextFrame.TextRange&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.Text = "This is the first level heading" &amp;amp; vbCrLf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.InsertAfter "This is the second level heading" &amp;amp; vbCrLf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.InsertAfter "This is the third level heading" &amp;amp; vbCrLf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.InsertAfter "This is another first level heading"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(1, 1).IndentLevel = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(2, 1).IndentLevel = 2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(3, 1).IndentLevel = 3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(4, 1).IndentLevel = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Verdana size=2&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/22/162719.aspx"&gt;Tomorrow&lt;/A&gt; we&amp;#8217;ll talk about setting media objects and OLE objects to perform as part of their animation effects. And if you&amp;#8217;re good, maybe I&amp;#8217;ll throw in some object model diagrams as well.&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=161537" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item><item><title>Animating Shapes in PowerPoint 2000 and 97 (Part 2 of 4)</title><link>http://blogs.msdn.com/andrew_may/archive/2004/06/18/159474.aspx</link><pubDate>Fri, 18 Jun 2004 18:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:159474</guid><dc:creator>Andrew May</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/159474.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=159474</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=159474</wfw:comment><description>&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;So &lt;SPAN class=MsoHyperlink&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/17/158703.aspx"&gt;yesterday&lt;/A&gt;&lt;/SPAN&gt; we started talking about how to animate shapes if you&amp;#8217;re programming for PowerPoint 97 or 2000. Today we continue by discussing how to trigger your animation effects, and control the order in which they occur. We&amp;#8217;ll also touch on how to further customize a shape&amp;#8217;s animation, by adding sound and/or changing the shape&amp;#8217;s post-animation appearance.&lt;/FONT&gt;&lt;/P&gt;
&lt;H5 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=4&gt;Setting the Order in Which PowerPoint Animates Shapes&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationOrder&lt;/STRONG&gt;&lt;/SPAN&gt; property of each shape determines the order in which PowerPoint animates the shape, from the lowest number to the highest. By default, if you don&amp;#8217;t explicitly specify an animation order, PowerPoint sets the animation order in the order in which you set the Shape objects to be animated; that is, the order in which you set the Animate property to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;msoTrue&lt;/STRONG&gt;&lt;/SPAN&gt; for each &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; object. The first shape for which you set Animate to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;msoTrue&lt;/STRONG&gt;&lt;/SPAN&gt; is first in the animation sequence, the next second, and so on. If you later set a &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; objects &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationOrder&lt;/STRONG&gt;&lt;/SPAN&gt; property to a specific value, PowerPoint re-orders the index of each shape&amp;#8217;s animation accordingly.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The following code demonstrates this. The code creates a new blank slide, then adds four shapes and specifies that each be animated. No animation index is specified, so PowerPoint sets each shape as the next in the animation sequence as the code specifies each to be animated. The code prints the name and animation order of each shape. Then the code adds a fifth shape, and explicitly sets the animation index of this shape to &amp;#8216;2&amp;#8217;. PowerPoint automatically resets the animation order index of each shape that comes after the new shape in the animation order. Lastly, the code prints the name of each shape, and its revised animation order.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Sub DemoAnimationIndexing()&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim iCount As Integer&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim objShape As Shape&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;ActivePresentation.Slides.Add Index:=1, Layout:=ppLayoutBlank&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;o:p&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With ActivePresentation.Slides(1).Shapes&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;For iCount = 1 To 4&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set objShape = .AddShape(msoShapeCube, 100, 100, 100, 100)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;objShape.Name = "Cube " &amp;amp; iCount&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With objShape.AnimationSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Animate = msoTrue&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;'.AnimationOrder = iCount&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Debug.Print objShape.Name &amp;amp; _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;" Animation Order: " &amp;amp; _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;objShape.AnimationSettings.AnimationOrder&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Next iCount&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set objShape = .AddShape(msoShapeCube, 100, 100, 100, 100)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;objShape.Name = "Cube 5"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With objShape.AnimationSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Animate = msoTrue&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AnimationOrder = 2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;For iCount = 1 To .Count&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Debug.Print .Item(iCount).Name &amp;amp; _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;" Animation Order: " &amp;amp; _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Item(iCount).AnimationSettings.AnimationOrder&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Next iCount&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;o:p&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End Sub&lt;/FONT&gt;&lt;/P&gt;
&lt;H5 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=4&gt;Setting How PowerPoint Advances to the Next Animation Effect&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;You can specify when you want PowerPoint to advance to the next shape animation in the animation sequence: either when the user clicks the slide, or after a specified time interval. Use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AdvanceMode&lt;/STRONG&gt;&lt;/SPAN&gt; property to specify whether you want PowerPoint to perform a shape&amp;#8217;s animation when the user clicks on the slide, or after a certain period of time. For timed advancement, use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AdvanceTime&lt;/STRONG&gt;&lt;/SPAN&gt; property to specify the time, in seconds, PowerPoint should wait after the last animation effect before performing the specified animation.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;By default, the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AdvanceMode&lt;/STRONG&gt;&lt;/SPAN&gt; property is set to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAdvanceModeOnClick&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The following example sets a shape to be the first shape animated when the slide loads, and for PowerPoint to automatically animate the shape five seconds after the slide loads.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim objShape As Shape&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With ActivePresentation.Slides(1).Shapes&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;o:p&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set objShape = .Item("Title")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With objShape.AnimationSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.EntryEffect = ppEffectBlindsHorizontal&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AnimationOrder = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AdvanceMode = ppAdvanceOnTime&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AdvanceTime = 5&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;H4 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=5&gt;Further Customizing Your Animation Effects&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Once you&amp;#8217;ve set which shapes get animated, with which animation effects and in which order, you can customize the animation effect for each shape even further. You can add a sound effect to a shape&amp;#8217;s animation, and alter the appearance of a shape once PowerPoint has performed the shape&amp;#8217;s animation effect.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;In addition, certain types of &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; objects have additional animation functionality. You can animate text and charts to build piece-by-piece, to reveal the complete shape. If you animate media or OLE objects, you can customize how they perform as part of their animation effect.&lt;/FONT&gt;&lt;/P&gt;
&lt;H5 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=4&gt;Adding Sound to Your Animation Effects&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;You can also add a sound effect to a shape&amp;#8217;s animation effect. This is different from adding sound files to the slide itself. An animation sound effect is not an independent shape that appears on the slide; rather, it is a sound file that plays when PowerPoint animates the shape to which it is assigned. The &lt;SPAN class=Bold&gt;&lt;STRONG&gt;SoundEffect &lt;/STRONG&gt;&lt;/SPAN&gt;object, a child of the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationsSettings &lt;/STRONG&gt;&lt;/SPAN&gt;object, contains members that enable you to set and control a &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; object&amp;#8217;s animation sound effect.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ImportFromFile &lt;/STRONG&gt;&lt;/SPAN&gt;method to specify a sound file you want imported and used as an animation sound effect. You can also use a sound effect that is native to PowerPoint by setting the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Name &lt;/STRONG&gt;&lt;/SPAN&gt;property.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;You can also use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;SoundEffect &lt;/STRONG&gt;&lt;/SPAN&gt;object to stop a sound effect from a previous shape&amp;#8217;s animation effect. By default, PowerPoint plays each sound effect through once, unless the next shape&amp;#8217;s animation starts first, and it has a sound effect. But you might want to stop the previous sound effect when the next shape&amp;#8217;s animation begins, but that shape&amp;#8217;s animation effect does not have a sound effect. In this case, set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;SoundEffect&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;SPAN class=Bold&gt;&lt;STRONG&gt;Type &lt;/STRONG&gt;&lt;/SPAN&gt;property of the second shape to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppSoundEffectStopPrevious&lt;/STRONG&gt;&lt;/SPAN&gt;. This stops the previous sound effect; you do not need to specify a sound file for the sound effect.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;For shapes with build animations, such as text or charts, the sound effect restarts each time PowerPoint animates the next sub-object. For example, if you set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextLevelEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateByFirstLevel&lt;/STRONG&gt;&lt;/SPAN&gt;, the sound effect restarts each time PowerPoint animates the next first level paragraph. In addition, if you set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextUnitEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateByCharacter&lt;/STRONG&gt;&lt;/SPAN&gt; or &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateByWord&lt;/STRONG&gt;&lt;/SPAN&gt;, then the sound effect restarts each time PowerPoint animates the next character or word, respectively.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The following example specifies the animation settings for the selected shape on a slide. The code specifies that PowerPoint display the text in the shape character by character, playing the typewriter sound effect each time PowerPoint displays a new character. Note that &amp;#8220;Typewriter&amp;#8221; is a native PowerPoint sound effect.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With .Shapes("Body Text").AnimationSettings&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.TextLevelEffect = ppAnimateByFirstLevel&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.TextUnitEffect = ppAnimateByCharacter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;.SoundEffect.Name = "Typewriter"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;H5 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=4&gt;Changing the Appearance of the Shape Once PowerPoint Completes the Animation Effect&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;You can also specify how you want the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; to appear once the animation is finished by using the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AfterEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property. You can use after effects to de-emphasize a slide element once you want to move the user&amp;#8217;s focus elsewhere, and to conserve slide &amp;#8216;real estate&amp;#8217;. For example, you can set shapes or text to turn a neutral color, so they fade into the slide background and do not distract from the slide shape being animated next. You can also set PowerPoint to render a shape invisible, either immediately after PowerPoint finishes animating it, or on the next slide click. With the exception of &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAfterEffectHideOnClick&lt;/STRONG&gt;&lt;/SPAN&gt;, PowerPoint performs the specified after effect as soon as it finishes animating the shape.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;By default, the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AfterEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property is set to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAfterEffectNothing&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;If you specify &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAfterEffectDim&lt;/STRONG&gt;&lt;/SPAN&gt;, you can use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;DimColor&lt;/STRONG&gt;&lt;/SPAN&gt; property to specify a &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ColorFormat&lt;/STRONG&gt;&lt;/SPAN&gt; object representing the dim color you want. The &lt;SPAN class=Italic&gt;&lt;EM&gt;dim color&lt;/EM&gt;&lt;/SPAN&gt; is the color PowerPoint turns the shape or text once PowerPoint is done animating it.&lt;/FONT&gt;&lt;/P&gt;&lt;SPAN style="COLOR: windowtext"&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="COLOR: windowtext"&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/18/159474.aspx"&gt;Next time&lt;/A&gt;, we&amp;#8217;ll cover build effect animations: what they are, and how to assign and customize them.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=159474" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item><item><title>Animating Shapes in PowerPoint 2000 and 97 (Part 1)</title><link>http://blogs.msdn.com/andrew_may/archive/2004/06/17/158703.aspx</link><pubDate>Thu, 17 Jun 2004 22:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:158703</guid><dc:creator>Andrew May</dc:creator><slash:comments>6</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/158703.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=158703</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=158703</wfw:comment><description>&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;So, while I was out of town, my first article dealing with PowerPoint animation made its debut:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN class=MsoHyperlink&gt;&lt;A href="http://msdn.microsoft.com/office/understanding/powerpoint/techarticles/default.aspx?pull=/library/en-us/odc_pp2003_ta/html/odc_pp_animationsoms.asp"&gt;&lt;FONT face=Verdana size=2&gt;Comparing Ways to Control Animation in PowerPoint 2002 and 2003&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;As I&amp;#8217;ve mentioned in previous blog entries, there are actually two ways to programmatically animate shapes on a slide: one that works best for PowerPoint 2002 and 2003, and one that&amp;#8217;s been retained for compatibility with PowerPoint 2000 and 97. This article examines the differences between the two, and discusses when using each is appropriate. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Slated for publication next week is the first of a two-part article that covers how to use the revised and greatly expanded animation functionality included in PowerPoint 2002 and 2003.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Now, while my articles naturally focus on the advantages of using the 2002 and 2003 functionality, in order to write these articles I had to learn how to use the 2000 and 97 functionality as well. And since there&amp;#8217;s a large number of developers out there still working with those versions, it seems worthwhile to take a few minutes and present that information here. So for the next few days, I&amp;#8217;ll be covering how to animate shapes using the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings&lt;/STRONG&gt;&lt;/SPAN&gt; object. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Applies to:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Microsoft PowerPoint 2000&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Microsoft PowerPoint 97&lt;/FONT&gt;&lt;/P&gt;
&lt;H4 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=5&gt;Introduction&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;In PowerPoint, the term &lt;SPAN class=Italic&gt;&lt;EM&gt;animations&lt;/EM&gt;&lt;/SPAN&gt; refers to special visual or sound effects you add to text or an object. Animation effects give motion to text, pictures, and other content on your slides. Besides adding action, they help you guide audience focus, emphasize important points, transition between slides, and maximize slide space by moving things on and off.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;These effects can include how the shape (or its component parts) enter the slide, what the shape does once it appears on the slide, and how it appears once the animation sequence moves to the next shape. You can set the animation sequence to advance to the next animation effect by the user clicking on the slide, or pre-set timing settings.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=AlertText style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;SPAN class=Bold&gt;&lt;STRONG&gt;Important&lt;/STRONG&gt;&lt;/SPAN&gt; If you are programming for PowerPoint versions 2002 or 2003, you should be using the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TimeLine&lt;/STRONG&gt;&lt;/SPAN&gt; object model for dealing with animation effects; the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings&lt;/STRONG&gt;&lt;/SPAN&gt; object model should only be used for PowerPoint versions 2000 and 97. The two object models are not compatible. Using the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings &lt;/STRONG&gt;&lt;/SPAN&gt;object model for programming PowerPoint 2002 or 2003 is not recommended, as it can have unexpected and undesirable results for your animation sequences. For more information see &lt;SPAN class=MsoHyperlink&gt;&lt;A href="http://msdn.microsoft.com/office/understanding/powerpoint/techarticles/default.aspx?pull=/library/en-us/odc_pp2003_ta/html/odc_pp_animationsoms.asp"&gt;Comparing Ways to Control Animation in PowerPoint 2002 and 2003&lt;/A&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;H4 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=5&gt;Animations in PowerPoint 2000 and 97&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;In PowerPoint 2000 and 97, each &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; object on a slide can have a single animation effect, represented by that &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; object&amp;#8217;s &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings&lt;/STRONG&gt;&lt;/SPAN&gt; object. You create and customize animations using the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings&lt;/STRONG&gt;&lt;/SPAN&gt; object&amp;#8217;s members and child objects. While each &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Shape&lt;/STRONG&gt;&lt;/SPAN&gt; object can have only one animation effect, in the case of charts or text, the animation effect may be a &lt;SPAN class=Italic&gt;&lt;EM&gt;build effect&lt;/EM&gt;&lt;/SPAN&gt;, in which sub-objects of the shape are animated sequentially so that they combine, or build, to display the complete shape. We discuss build effect animations is greater detail later.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="COLOR: windowtext"&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;Shapes that are not animated appear on the slide when it first loads.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;&lt;SPAN style="COLOR: windowtext"&gt;The individual animation effects for each shape collectively make up a slide&amp;#8217;s &lt;/SPAN&gt;&lt;SPAN class=Italic&gt;&lt;EM&gt;animation sequence&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: windowtext"&gt;. There is one animation sequence per slide, and it starts when the slide loads.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;H4 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=5&gt;Setting the Type, Timing, and Order of a Slide&amp;#8217;s Animation Sequence&lt;/FONT&gt;&lt;/H4&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;When you decide to add animation effects to a slide, the general questions you need to answer concern the sequence and timing of the shapes you want to animate:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;Which shapes do you want to animate?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;What kind of animation do you want PowerPoint to perform on each shape?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;In what order do you want PowerPoint to animate the shapes?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;How do you want to initiate each shape&amp;#8217;s animation effect?&lt;/FONT&gt;&lt;/P&gt;
&lt;H5 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=4&gt;Setting Which Shapes Get Animated&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;For PowerPoint to animate a shape, you set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Animate&lt;/STRONG&gt;&lt;/SPAN&gt; property of its &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings&lt;/STRONG&gt;&lt;/SPAN&gt; object to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;msoTrue&lt;/STRONG&gt;&lt;/SPAN&gt;. PowerPoint automatically sets the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Animate&lt;/STRONG&gt;&lt;/SPAN&gt; property to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;msoTrue&lt;/STRONG&gt;&lt;/SPAN&gt; in either of the following instances:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;You set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextLevelEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property to a value other than &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateLevelNone&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;You set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;EntryEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property to a value other than &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppEntryEffectNone&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The converse is also true. PowerPoint automatically sets the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Animate&lt;/STRONG&gt;&lt;/SPAN&gt; property to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;msoFalse&lt;/STRONG&gt;&lt;/SPAN&gt; if you set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;TextLevelEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppAnimateLevelNone&lt;/STRONG&gt;&lt;/SPAN&gt;, or set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;EntryEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppEntryEffectNone&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Even if you have set other properties of the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings&lt;/STRONG&gt;&lt;/SPAN&gt; object, PowerPoint disregards them and does not animate the shape unless the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;Animate&lt;/STRONG&gt;&lt;/SPAN&gt; property is set to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;msoTrue&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Shapes with an &lt;SPAN class=Bold&gt;&lt;STRONG&gt;EntryEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property of &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppEffectNone&lt;/STRONG&gt;&lt;/SPAN&gt; are visible when the slide loads.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;There are instances when you would want to set the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;EntryEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppEffectNone&lt;/STRONG&gt;&lt;/SPAN&gt;. For example, you could have a media object you want visible on the slide when it loads, even if you do not want to play the file until the fourth animation in the sequence. The following code does just that. Note that the code explicitly sets the Animate property is to &lt;SPAN class=Bold&gt;&lt;STRONG&gt;True&lt;/STRONG&gt;&lt;/SPAN&gt; after it specifies the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;EntryEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property as &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppEffectNone&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With ActivePresentation.Slides(1).Shapes&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;o:p&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set objShape = .Item("Title")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With objShape.AnimationSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.EntryEffect = ppEffectBlindsHorizontal&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AnimationOrder = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set objShape = .Item("Shape1")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With objShape.AnimationSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.EntryEffect = ppEffectFlyFromLeft&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AnimationOrder = 2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set objShape = .Item("MovieClip")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With objShape.AnimationSettings&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.EntryEffect = ppEffectNone&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Animate = msoTrue&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AnimationOrder = 3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;H5 style="MARGIN: 9pt 0in 3pt"&gt;&lt;FONT face=Verdana size=4&gt;Specifying the Animation Effect PowerPoint Performs on a Shape&lt;/FONT&gt;&lt;/H5&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Use the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;EntryEffect&lt;/STRONG&gt;&lt;/SPAN&gt; property to specify which animation effect you want PowerPoint to perform on the selected shape. &lt;SPAN style="COLOR: windowtext"&gt;All animation effects created using the &lt;/SPAN&gt;&lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR: windowtext"&gt; object are entrance effects. &lt;/SPAN&gt;Entrance effects are animations that control how the shape becomes visible on the slide. For example, this could involve having the shape appear to move onto the slide from outside the slide boundaries, such as flying in from the right edge of the slide; or having the shape become visible in place in a particular manner, such as dissolving into visibility.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;By default, if you do not set an animation effect for a shape, PowerPoint uses the &amp;#8216;Appear&amp;#8217; effect, &lt;SPAN class=Bold&gt;&lt;STRONG&gt;ppEntryEffectAppear&lt;/STRONG&gt;&lt;/SPAN&gt;. The code example in the following section demonstrates this.&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Verdana size=2&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/06/18/159474.aspx"&gt;Tomorrow&lt;/A&gt;, we&amp;#8217;ll tackle setting the animation order of the shapes on a slide, and how to trigger a shape&amp;#8217;s animation effect.&lt;/P&gt;&lt;/FONT&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=158703" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item><item><title>Playing Invisible Sound Clips Revisited</title><link>http://blogs.msdn.com/andrew_may/archive/2004/06/01/145854.aspx</link><pubDate>Tue, 01 Jun 2004 21:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:145854</guid><dc:creator>Andrew May</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/145854.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=145854</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=145854</wfw:comment><description>&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;So, it turns out there&amp;#8217;s still more to report on how to programmatically control your media objects in PowerPoint. And it&amp;#8217;s good news, so read on.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;I originally wrote about how to have a &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/03/05/84785.aspx"&gt;&lt;FONT face=Verdana size=2&gt;sound clip play automatically when a slide is loaded&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;, without having the sound file icon visible. I used the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;AnimationSettings.PlaySettings&lt;/STRONG&gt;&lt;/SPAN&gt; object, which works fine for PowerPoint 2000 and below. But it&amp;#8217;s the exact wrong thing to do with PowerPoint 2002 and 2003, as it may lead to some of your other animation effects being deleted from the slide. Then I showed how &lt;/FONT&gt;&lt;A href="http://blogs.msdn.com/andrew_may/archive/2004/03/24/95613.aspx"&gt;&lt;FONT face=Verdana size=2&gt;you could do the same thing using the &lt;B style="mso-bidi-font-weight: normal"&gt;TimeLine&lt;/B&gt; object&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana size=2&gt;. Unfortunately, because of a flaw in the object model, when you access the &lt;B style="mso-bidi-font-weight: normal"&gt;PlaySettings&lt;/B&gt; object through the &lt;B style="mso-bidi-font-weight: normal"&gt;TimeLine&lt;/B&gt; object, you still might end up deleting effects unless you&amp;#8217;re very careful.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Now, thanks to PowerPoint&amp;#8217;s wonderful development team, I&amp;#8217;ve learned that you can actually set a media object to play, pause, and stop, all without accessing the &lt;B style="mso-bidi-font-weight: normal"&gt;PlaySettings&lt;/B&gt; object. This presents a nice work-around that prevents you from accidentally deleting animations from your slide. Here&amp;#8217;s how it works:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Turns out there are three effect types that control the playing of a sound or movie file: &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaPause&lt;/STRONG&gt;&lt;/SPAN&gt;, &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaPlay&lt;/STRONG&gt;&lt;/SPAN&gt;, and &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaStop&lt;/STRONG&gt;&lt;/SPAN&gt;. By assigning &lt;B style="mso-bidi-font-weight: normal"&gt;Effect&lt;/B&gt; objects of these effect types to a media object, you can control when the audio or video file plays during your animation sequence, without accessing the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;PlaySettings&lt;/STRONG&gt;&lt;/SPAN&gt; object.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;So, going back to our example from those previous entries, here&amp;#8217;s how you would insert a sound file, move it off the viewable slide area, and create an &lt;B style="mso-bidi-font-weight: normal"&gt;Effect&lt;/B&gt; object that would play the file as soon as the slide loads:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Sub AddAudioOffSlide()&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim shpSound As Shape&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With ActivePresentation.Slides(1)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;'Add sound file&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .Shapes&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set shpSound = .AddMediaObject _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;(FileName:="C:\soundfiles\bobmould\black sheets of rain.mp3")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;'Position sound file off viewable slide area&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With shpSound&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Left = 0 - .Width&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Top = 0 - .Height&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .TimeLine.MainSequence&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;'Add effect to play sound file&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;'As first effect in main sequence&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;'set effect to perform when slide is loaded&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AddEffect Shape:=shpSound, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;effectId:=msoAnimEffectMediaPlay, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;trigger:=msoAnimTriggerWithPrevious, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Index:=1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Now obviously, with the ability to play, pause, and stop media files, you create much more complex animation sequences than the above example. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;One interesting thing worth mentioning: the &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaPause&lt;/STRONG&gt;&lt;/SPAN&gt; effect type actually functions to toggle whether the media object is playing or not. That is, if the media file is playing, assigning an &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaPause&lt;/STRONG&gt;&lt;/SPAN&gt; effect to the file pauses it; but if the file is already paused, assigning another &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaPause&lt;/STRONG&gt;&lt;/SPAN&gt; effect to the file causes the file to resume playing from the point at which it was pause. Conversely, an &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaPlay&lt;/STRONG&gt;&lt;/SPAN&gt; effect always starts the file playing from the beginning of the file, whether or not the file is currently paused at a certain point in the file.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The following example adds effects for a video file to a slide&amp;#8217;s main animation sequence. When the user clicks the page, the video file plays for 10 seconds, then pauses for 10 seconds, then starts playing for another 10 seconds before it stops. To accomplish this, the code adds four effects to the sequence. The first starts the file playing; the second pauses the file; the third starts the file playing again; and the final effect stops the file playing. The first effect is triggered when the user clicks the page; the other three are set to be triggered with the previous effect. The code sets the trigger delay time for each effect is set to different durations; otherwise, PowerPoint would perform all the effects simultaneously.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Note that the third effect, the one that resumes the file playing from the point where it was paused, is of type &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaPause&lt;/STRONG&gt;&lt;/SPAN&gt; rather than type &lt;SPAN class=Bold&gt;&lt;STRONG&gt;MsoAnimEffectMediaPlay&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim shpVideo As Shape&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim effPause As Effect&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim effPlayAgain As Effect&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;Dim effStop As Effect&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;o:p&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;With ActivePresentation.Slides(1)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set shpVideo = .Shapes("demovideo")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&lt;FONT face="Courier New" size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .TimeLine.MainSequence&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AddEffect Shape:=shpVideo, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;effectId:=msoAnimEffectMediaPlay, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;trigger:=msoAnimTriggerOnPageClick&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set effPause = .AddEffect(Shape:=shpVideo, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;effectId:=msoAnimEffectMediaPause, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;trigger:=msoAnimTriggerWithPrevious)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;effPause.Timing.TriggerDelayTime = 10&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set effPlayAgain = .AddEffect(Shape:=shpVideo, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;effectId:=msoAnimEffectMediaPause, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;trigger:=msoAnimTriggerWithPrevious)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;effPlayAgain.Timing.TriggerDelayTime = 20&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set effStop = .AddEffect(Shape:=shpVideo, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;effectId:=msoAnimEffectMediaStop, _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;trigger:=msoAnimTriggerWithPrevious)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;effStop.Timing.TriggerDelayTime = 30&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New" size=2&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;For more information about inserting media objects to a presentation, you can always refer to my article &lt;SPAN style="mso-bidi-font-size: 13.0pt"&gt;&lt;A href="http://www.msdn.microsoft.com/office/understanding/powerpoint/techarticles/default.aspx?pull=/library/en-us/odc_pp2003_ta/html/odc_pp_insertmedia.asp"&gt;Adding Multimedia to a PowerPoint 2003 Presentation&lt;/A&gt;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;I&amp;#8217;m working on several articles dealing with how to create and customize animation sequences in PowerPoint 2002 and above. With any luck they&amp;#8217;ll be published in a few weeks. Of course, I&amp;#8217;ll post the links here once those articles go live.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Many thanks again to the PowerPoint development team for their willingness to bring me up to speed and (gently) correct my mistakes.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=145854" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item><item><title>Working with multimedia files in PowerPoint</title><link>http://blogs.msdn.com/andrew_may/archive/2004/04/12/111872.aspx</link><pubDate>Mon, 12 Apr 2004 21:50:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:111872</guid><dc:creator>Andrew May</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/111872.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=111872</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=111872</wfw:comment><description>&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt; mso-bidi-font-size: 10.0pt"&gt;&lt;FONT face=Verdana&gt;My first two developer articles for PowerPoint are now available on the &lt;?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /&gt;&lt;st1:place w:st="on"&gt;&lt;st1:PlaceName w:st="on"&gt;Office&lt;/st1:PlaceName&gt; &lt;st1:PlaceName w:st="on"&gt;Developer&lt;/st1:PlaceName&gt; &lt;st1:PlaceType w:st="on"&gt;Center&lt;/st1:PlaceType&gt;&lt;/st1:place&gt;:&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;&lt;A href="http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_pp2003_ta/html/odc_PP_PlayMedia.asp"&gt;&lt;FONT face=Verdana&gt;How PowerPoint 2003 Plays Multimedia Files in a Presentation&lt;/FONT&gt;&lt;/A&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;&lt;FONT face=Verdana&gt;The title pretty much say it all. The first article should actually be of interest to more than just PowerPoint developers. It explains how PowerPoint 2002 and 2003 decide which Microsoft media technology to use to play a given multimedia file, and includes some advice on how to help ensure PowerPoint plays your sound and movie files as you want, whether on your machine or somewhere else. I&amp;#8217;ve seen questions about this issue come up a lot in the newsgroups, so hopefully this article provides some answers. And while it&amp;#8217;s published on MSDN, it should be understandable and useful to anyone who uses multimedia files with PowerPoint; there&amp;#8217;s not a single line of code in it, I promise.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;&lt;A href="http://msdn.microsoft.com/office/default.aspx?pull=/library/en-us/odc_pp2003_ta/html/odc_PP_InsertMedia.asp"&gt;&lt;FONT face=Verdana&gt;Adding Multimedia to a PowerPoint 2003 Presentation&lt;/FONT&gt;&lt;/A&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;&lt;FONT face=Verdana&gt;The second article is more firmly aimed at a developer audience. It covers how to programmatically insert audio and video into PowerPoint presentations, and the advantages of inserting the files as media object, as opposed to OLE objects.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;&lt;FONT face=Verdana&gt;I&amp;#8217;m really happy with how these turned out. Give &amp;#8216;em a read, and let me know what you think.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=111872" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category></item><item><title>Assigning Build Levels to Text</title><link>http://blogs.msdn.com/andrew_may/archive/2004/04/02/106695.aspx</link><pubDate>Fri, 02 Apr 2004 20:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:106695</guid><dc:creator>Andrew May</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/106695.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=106695</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=106695</wfw:comment><description>&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;So, as I may have mentioned, I&amp;#8217;m currently writing a few articles dealing with PowerPoint animations. One of the interesting concepts here is that of the &lt;I style="mso-bidi-font-style: normal"&gt;build&lt;/I&gt;, in which the sub-objects of a shape enter the slide, either individually or in subsets, to build the final shape. One of the most prevalent uses of this is the dreaded &amp;#8216;text build&amp;#8217;, where the various bullet points of a text box enter a slide. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Because you assign build effects to a shape&amp;#8217;s text based on the indent levels of the text paragraphs, such as first-level, second-level, etc., it&amp;#8217;s worth discussing how to specify the indent level for text.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Each &lt;B style="mso-bidi-font-weight: normal"&gt;Shape&lt;/B&gt; has a &lt;B style="mso-bidi-font-weight: normal"&gt;TextFrame&lt;/B&gt; object, which in turn has a &lt;B style="mso-bidi-font-weight: normal"&gt;TextRange&lt;/B&gt; object that contains all the text in a shape. You can then use various methods of the &lt;B style="mso-bidi-font-weight: normal"&gt;TextRange&lt;/B&gt; object to return other &lt;B style="mso-bidi-font-weight: normal"&gt;TextRange&lt;/B&gt; objects that represent various subset of the text in the shape, such as paragraphs, sentences, lines, runs, words, or characters. The &lt;B style="mso-bidi-font-weight: normal"&gt;IndentLevel&lt;/B&gt; property of a given &lt;B style="mso-bidi-font-weight: normal"&gt;TextRange&lt;/B&gt; returns or sets the indent level assigned to that text.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;You can specify one build level per paragraph. If you assign an indent level to a text range that is a sub-set of a paragraph, such as a single sentence or character run, that indent level is applied to the entire paragraph. If you assign an indent level to a text range that encompasses text in multiple paragraphs, then each of those paragraphs is assigned the specified indent level. For example, if you change the indent level of a sentence, word, or run in a second-level paragraph to 3, then the indent level for the entire paragraph is set to 3.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Because the objects returned by the various &lt;B style="mso-bidi-font-weight: normal"&gt;TextRange&lt;/B&gt; methods are &lt;B style="mso-bidi-font-weight: normal"&gt;TextRange&lt;/B&gt; objects themselves, they have all the methods and properties of that type. For example, &lt;B style="mso-bidi-font-weight: normal"&gt;TextRange.TextRange.Paragraphs.Count&lt;/B&gt; returns the number of paragraphs contained in a shape&amp;#8217;s text frame. Use the &lt;B style="mso-bidi-font-weight: normal"&gt;Paragraphs&lt;/B&gt; method to set the indent level of your paragraphs.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;The code below adds four paragraphs, or bullet points, to a shape on a slide. It then uses the &lt;B style="mso-bidi-font-weight: normal"&gt;Paragraphs&lt;/B&gt; method to individually return and set the indent level of each of those paragraphs.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With objShape.TextFrame.TextRange&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Text = "This is the first level heading" &amp;amp; vbCrLf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.InsertAfter "This is the second level heading" &amp;amp; vbCrLf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.InsertAfter "This is the third level heading" &amp;amp; vbCrLf&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.InsertAfter "This is another first level heading"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(1, 1).IndentLevel = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(2, 1).IndentLevel = 2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(3, 1).IndentLevel = 3&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Paragraphs(4, 1).IndentLevel = 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;And here&amp;#8217;s how the text would display on the slide:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;This is the first level heading&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.5in; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;This is the second level heading&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.75in; tab-stops: list .75in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;This is the third level heading&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=BulletedList1 style="MARGIN: 3pt 0in 3pt 0.25in"&gt;&lt;SPAN style="FONT-FAMILY: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT size=2&gt;&amp;#183;&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Verdana size=2&gt;This is another first level heading&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=106695" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item><item><title>How Not to Animate Your Slide</title><link>http://blogs.msdn.com/andrew_may/archive/2004/03/24/95613.aspx</link><pubDate>Wed, 24 Mar 2004 23:12:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:95613</guid><dc:creator>Andrew May</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/95613.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=95613</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=95613</wfw:comment><description>&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Hey, remember that nifty tip in my last blog entry about how to set up a sound file so that&amp;#8217;s it&amp;#8217;s &amp;#8216;invisible&amp;#8217; and plays automatically when the slide loads? Nice trick, huh? Turns out that entry, in addition to being my first official PowerPoint blog entry, afforded me the rare opportunity to be horribly wrong with my advice in two completely different ways. Not only should you not set up the file to play automatically using the code I wrote, but even if you wrote the correct code, it might well screw up other animation effects for your entire slide.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Here&amp;#8217;s the deal:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Unbeknownst to me at the time, it turns out that in PowerPoint 2002 and above there are actually two separate, incompatible sections of the object model that enable you to set up animation effects for your slide. The new, expanded object model section, contained in the TimeLine object, provides more flexibility and options for richer interactive animations then ever before. This is the object model section you should use for animation whenever possible. The other section, contained in the AnimationSettings object, was retained strictly for backward compatibility reasons. Unless you&amp;#8217;re programming for PowerPoint 2000 and below, never use the Animation Settings object. (This, of course, make me wonder why this section of the object model wasn&amp;#8217;t hidden for PowerPoint 2002 and above, but that&amp;#8217;s a minor digression.)&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Still with me? Because of basic differences in the way they are organized, the two object models are &lt;B style="mso-bidi-font-weight: normal"&gt;not&lt;/B&gt; compatible. The AnimationSettings object model only supports entry effects for shapes (which is one reason the TimeLine object model was created, to offer users multiple effects for a single shape.) Here&amp;#8217;s where the fun begins. If your code uses the &lt;SPAN class=Bold&gt;&lt;SPAN style="FONT-WEIGHT: normal"&gt;AnimationSettings&lt;/SPAN&gt;&lt;/SPAN&gt; object to set any effect properties, PowerPoint assumes you are programming for PowerPoint 2000 or below, and therefore deletes any animation effects that are not entry effects, &lt;SPAN class=Italic&gt;&lt;EM&gt;for the entire slide&lt;/EM&gt;&lt;/SPAN&gt;. This includes effects that were added using the user interface.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Ouch.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;So naturally, the code I wrote for my tip inserted the sound file &amp;#8216;offscreen&amp;#8217;, and then used the AnimationSettings object to set the file to play when the slide loaded. Let me apologize right now if I blew up anyone&amp;#8217;s slide and you&amp;#8217;ve been trying to figure out why ever since.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Now, normally at this point, having finished my mea culpa, I would show you the proper way to set the file to play automatically, using the TimeLine object model.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Except it doesn&amp;#8217;t work that way either.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Turns out there&amp;#8217;s currently a bug in the PowerPoint object model. You set a file to play automatically by setting PlaySettings.PlayOnEntry to True. You can access the PlaySettings object through either object model. Unfortunately, because of the bug, when you access certain properties of the PlaySettings object, even if you do so through the TimeLine object model, PowerPoint assumes you are programming for PowerPoint 2000 or below, and&amp;#8212;you guessed it&amp;#8212;deletes any animation effects that are not entry effects, &lt;SPAN class=Italic&gt;&lt;EM&gt;for the entire slide&lt;/EM&gt;&lt;/SPAN&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;This is true for the following PlaySettings properties: ActionVerb, HideWhileNotPlaying, PauseAnimation, PlayOnEntry, and StopAfterSlides. It seems like you can access the following two properties and not suffer any ill effects, but no guarantees: LoopUntilStopped and RewindMovie.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Did I mention that I was still learning my way around the PowerPoint object model?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;FONT face=Verdana size=2&gt;Actually, I&amp;#8217;m in the process right now of writing several articles on how to create, customize and control animation effects in PowerPoint. And unlike these helpful blog entries, the articles will be tech reviewed by developers on the PowerPoint team. Stay tuned.&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=95613" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category></item><item><title>Playing Sound Clips Without Seeing the Icon</title><link>http://blogs.msdn.com/andrew_may/archive/2004/03/05/84785.aspx</link><pubDate>Fri, 05 Mar 2004 19:16:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:84785</guid><dc:creator>Andrew May</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/andrew_may/comments/84785.aspx</comments><wfw:commentRss>http://blogs.msdn.com/andrew_may/commentrss.aspx?PostID=84785</wfw:commentRss><wfw:comment>http://blogs.msdn.com/andrew_may/rsscomments.aspx?PostID=84785</wfw:comment><description>&lt;SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-family: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;So here it is, my first official blog entry dealing with programming PowerPoint presentations. It&amp;#8217;s a modest tip, but then, I&amp;#8217;m still learning my way around the PowerPoint object model.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;When you insert a sound clip into a PowerPoint presentation, a small icon representing the sound file appears on the specified slide. Which is fine if you intend to start the sound file playing by user interaction, that is, by clicking on the icon or moving your mouse over top of it. But what if you just want the clip to play automatically when the slide loads? Then the icon is just visual clutter.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;In the user interface, if you drag the icon off into the &amp;#8216;work space&amp;#8217; area around the slide, then the icon won&amp;#8217;t appear during the presentation. Just remember to set the sound clip to play automatically when the slide appears, however, because without the icon you don&amp;#8217;t have any way to start the slide during the presentation itself.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;The following code does the same thing programmatically. First, it inserts the sound file. Then it moves the sound file (now represented by a Shape object, the icon) over to above the upper left hand corner of the slide. Then it sets several properties of the AnimationSettings object, which controls the playback behavior of the sound file. Specifically, the sound file is set to be the first shape on the slide animated, but to have no entry effect (so it just appears&amp;#8212;or rather, doesn&amp;#8217;t, as it&amp;#8217;s positioned off the slide), and to play as soon as it appears, which is when the slide appears.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;Sub AddAudioOffSlide()&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;Dim shpSound As Shape&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;o:p&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;With ActivePresentation.Slides(2).Shapes&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;Set shpSound = .AddMediaObject _&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt 0.25in; TEXT-INDENT: 0.25in"&gt;&lt;FONT face="Courier New"&gt;("C:\soundfiles\pixies\wave_of_mutilation.mp3")&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With shpSound&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Left = 0 - .Width&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Top = 0 - .Height&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;With .AnimationSettings&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.Animate = msoTrue&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AnimationOrder = 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.EntryEffect = ppEffectNone&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.PlaySettings.PlayOnEntry = msoTrue&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AdvanceMode = ppAdvanceOnTime&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.AdvanceTime = 0&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;End With&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Code style="MARGIN: 0in 0in 3pt"&gt;&lt;FONT face="Courier New"&gt;End Sub&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;I believe you could also set the sound file to play in conjunction with another shape&amp;#8217;s animation by setting the AnimationSettings.AnimationOrder of both Shape objects to the same value, but I haven&amp;#8217;t tested that. And anyway, if you just wanted to play the sound file once as part of another shape&amp;#8217;s animation, you can just use the AnimationSettings.SoundEffect property to do that, without having to add the sound file to the slide at all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=Text style="MARGIN: 3pt 0in"&gt;&lt;SPAN style="FONT-SIZE: 9pt"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=84785" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/andrew_may/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://blogs.msdn.com/andrew_may/archive/tags/Code+snippets/default.aspx">Code snippets</category></item></channel></rss>