Exporting PowerPoint Slides with Specific Heights and Widths

Posted by Damon Armstrong on Simple Talk See other posts from Simple Talk or by Damon Armstrong
Published on Thu, 29 May 2014 13:47:34 +0000 Indexed on 2014/05/29 21:51 UTC
Read the original article Hit count: 342

Filed under:

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.  You can, however, specify the resolution if you are willing to put a macro into your project:

Sub ExportSlides()
  For i = 1 To ActiveWindow.Selection.SlideRange.Count
    Dim fileName As String
    If (i < 10) Then
      fileName = "C:\PowerPoint Export\Slide" & i & ".png"
    Else
      fileName = "C:\PowerPoint Export\Slide0" & i & ".png"
    End If
    ActiveWindow.Selection.SlideRange(i).Export fileName, "PNG", 1280, 720
  Next
End Sub

When you call the Export method you can specify the file type as well as the dimensions to use when creating the image.  If the macro approach is not your thing, then you can also modify the default settings through the registry:

http://support.microsoft.com/kb/827745

© Simple Talk or respective owner

Related posts about Uncategorized