{"id":6983,"date":"2014-05-29T13:47:34","date_gmt":"2014-05-29T13:47:34","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/exporting-powerpoint-slides-with-specific-heights-and-widths\/"},"modified":"2016-07-28T10:55:09","modified_gmt":"2016-07-28T10:55:09","slug":"exporting-powerpoint-slides-with-specific-heights-and-widths","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/exporting-powerpoint-slides-with-specific-heights-and-widths\/","title":{"rendered":"Exporting PowerPoint Slides with Specific Heights and Widths"},"content":{"rendered":"<p>I found myself in need of exporting PowerPoint slides from a presentation and was fairly excited when I found that you could save them off in standard image formats. The problem is that Microsoft conveniently exports all images with a resolution of 960 x 720 pixels, which is not the resolution I wanted.&#160; You can, however, specify the resolution if you are willing to put a macro into your project:<\/p>\n<p>Sub ExportSlides()    <br \/>&#160; For i = 1 To ActiveWindow.Selection.SlideRange.Count     <br \/>&#160;&#160;&#160; Dim fileName As String     <br \/>&#160;&#160;&#160; If (i &gt; 10) Then     <br \/>&#160;&#160;&#160;&#160;&#160; fileName = &#8220;C:\\PowerPoint Export\\Slide&#8221; &amp; i &amp; &#8220;.png&#8221;     <br \/>&#160;&#160;&#160; Else     <br \/>&#160;&#160;&#160;&#160;&#160; fileName = &#8220;C:\\PowerPoint Export\\Slide0&#8221; &amp; i &amp; &#8220;.png&#8221;     <br \/>&#160;&#160;&#160; End If     <br \/>&#160;&#160;&#160; ActiveWindow.Selection.SlideRange(i).Export fileName, &#8220;PNG&#8221;, 1280, 720     <br \/>&#160; Next     <br \/>End Sub<\/p>\n<p> When you call the <strong>Export <\/strong>method you can specify the file type as well as the dimensions to use when creating the image.&#160; If the macro approach is not your thing, then you can also modify the default settings through the registry:   <\/p>\n<p><a href=\"http:\/\/support.microsoft.com\/kb\/827745\">http:\/\/support.microsoft.com\/kb\/827745<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found myself in need of exporting PowerPoint slides from a presentation and was fairly excited when I found that you could save them off in standard image formats. The problem is that Microsoft conveniently exports all images with a resolution of 960 x 720 pixels, which is not the resolution I wanted.&#160; You can,&#8230;&hellip;<\/p>\n","protected":false},"author":46738,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[],"class_list":["post-6983","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/46738"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=6983"}],"version-history":[{"count":4,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6983\/revisions"}],"predecessor-version":[{"id":42385,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6983\/revisions\/42385"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=6983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=6983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=6983"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=6983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}