Supercharge your PowerPoint productivity with
Supercharge your PPT Productivity with PPTools - Click here to learn more.

Proud member of


Image Export converts PowerPoint slides to high-quality images.

PPT2HTML exports HTML even from PowerPoint 2010 and 2013, gives you full control of PowerPoint HTML output, helps meet Section 508 accessibility requirements

Merge Excel data into PowerPoint presentations to create certificates, awards presentations, personalized presentations and more

Resize your presentations quickly and without distortion

Language Selector switches the text in your presentation from one language to another

FixLinks prevents broken links when you distribute PowerPoint presentations

Shape Styles brings styles to PowerPoint. Apply complex formatting with a single click.

Export slides as graphics

PowerPoint's SaveAs functions are rather limited when it comes to saving slides as JPG, WMF and other graphics formats under VBA program control.

A much more useful solution is the .Export method.

Here's an example:

Sub ExportMe()
    Dim ExportPath As String   ' drive:\path to export to
    Dim Pixwidth As Integer    '  size in pixels of exported image
    Dim Pixheight As Integer
    Dim oSlide As Slide

    ' Edit to suit
    Pixwidth = 1024    '  arbitrarily ... set whatever value you like here

    ' Set height proportional to slide height
    Pixheight = (Pixwidth * ActivePresentation.PageSetup.Slideheight) / ActivePresentation.PageSetup.Slidewidth

    ExportPath = ActivePresentation.Path & "\"

    Set oSlide = ActiveWindow.View.Slide
    With oSlide
        .Export ExportPath & "Slide" & CStr(.SlideIndex) & ".JPG", "JPG", Pixwidth, Pixheight
    End With

End Sub

Note that TIFFs are a problem area. There's no TIFF export filter in PowerPoint 97. The TIFF export filter in PowerPoint 2000 ignores your resolution specification and always exports at 72dpi times current slide height and width. The TIFF export filter in PowerPoint 2002 randomly produces TIFFs that some apps, notably Photoshop, can't open. If at all possible, skip TIFF. Use PNG instead.

In addition, some of the export filters (JPG, for example) are optional parts of the PowerPoint/Office 97 install. If the filters aren't installed, attempting to use it will trigger an error.

Don't want to do it yourself?

If you want a simpler, more versatile and easier to use way of exporting slides from PowerPoint, one that's always there when you need it, have a look at the inexpensive PPTools ImageExport add-in.

See How do I use VBA code in PowerPoint? to learn how to use this example code.

Did this solve your problem? If so, please consider supporting the PPT FAQ with a small PayPal donation.
Page copy protected against web site content infringement by Copyscape Contents © 1995 - 2022 Stephen Rindsberg, Rindsberg Photography, Inc. and members of the MS PowerPoint MVP team. You may link to this page but any form of unauthorized reproduction of this page's contents is expressly forbidden.

Supercharge your PPT Productivity with PPTools

content authoring & site maintenance by
Friday, the automatic faq maker (logo)
Friday - The Automatic FAQ Maker

Export slides as graphics
Last update 25 September, 2012