<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.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>The Art of PowerPoint-ing : vba</title><link>http://msmvps.com/blogs/tohlz/archive/tags/vba/default.aspx</link><description>Tags: vba</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Pausing your animations with VBA</title><link>http://msmvps.com/blogs/tohlz/archive/2008/08/10/pausing-your-slideshow-with-vba.aspx</link><pubDate>Sun, 10 Aug 2008 12:32:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1644260</guid><dc:creator>tohlz</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/tohlz/rsscomments.aspx?PostID=1644260</wfw:commentRss><comments>http://msmvps.com/blogs/tohlz/archive/2008/08/10/pausing-your-slideshow-with-vba.aspx#comments</comments><description>&lt;p&gt;Lets say if you are running a slide that has multiple animations on it. Halfway through the presentation, you may want to pause the animations to explain something. A simple way to do this is to press the &amp;quot;b&amp;quot; key which will black out the screen. Then, press &amp;quot;b&amp;quot; key again to resume the presentation. The downside is that you won&amp;#39;t be able to see the content on the screen.&lt;br /&gt;&lt;br /&gt;To resolve this, you can make use of VBA. To do so, click Tools &amp;gt; Macro &amp;gt; Visual Basic Editor. Copy the code as shown below:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Sub pauseshow()&lt;br /&gt;&amp;nbsp; ActivePresentation.SlideShowWindow.View.State = ppSlideShowPaused&lt;br /&gt;End Sub&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;em&gt;Sub runshow()&lt;br /&gt;&amp;nbsp; ActivePresentation.SlideShowWindow.View.State = ppSlideShowRunning&lt;br /&gt;End Sub&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Close the editor once you are done.&lt;br /&gt;&lt;br /&gt;Now, create two autoshapes. &lt;br /&gt;Right click on the first one and select Action Settings. Select Run Macro &amp;gt; pauseshow. Click Ok.&lt;br /&gt;Right click on the second one and select Action Settings. Select Run Macro &amp;gt; runshow. Click Ok.&lt;br /&gt;Clicking on Shape 1 will now pause the presentation, while clicking on Shape 2 will resume the presentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1644260" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/tohlz/archive/tags/powerpoint+animations/default.aspx">powerpoint animations</category><category domain="http://msmvps.com/blogs/tohlz/archive/tags/PowerPoint/default.aspx">PowerPoint</category><category domain="http://msmvps.com/blogs/tohlz/archive/tags/vba/default.aspx">vba</category><category domain="http://msmvps.com/blogs/tohlz/archive/tags/macro/default.aspx">macro</category></item></channel></rss>