Table of contents
Collapse the table of content
Expand the table of content

Presentation.Export Method (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Exports each slide in the presentation, using the specified graphics filter, and saves the exported files in the specified folder.


expression. Export( Path, FilterName, ScaleWidth, ScaleHeight )

expression A variable that represents a Presentation object.


NameRequired/OptionalData TypeDescription
PathRequiredStringThe path of the folder where you want to save the exported slides. You can include a full path; if you don't do this, Microsoft PowerPoint creates a subfolder in the current folder for the exported slides.
FilterNameRequiredStringThe graphics format in which you want to export slides. The specified graphics format must have an export filter registered in the Windows registry. You can specify either the registered extension or the registered filter name. PowerPoint will first search for a matching extension in the registry. If no extension that matches the specified string is found, PowerPoint will look for a filter name that matches.
ScaleWidthOptionalLongThe width in pixels of an exported slide.
ScaleHeightOptionalLongThe height in pixels of an exported slide.


Exporting a presentation doesn't set the Saved property of a presentation to True.

PowerPoint uses the specified graphics filter to save each individual slide in the presentation. The names of the slides exported and saved to disk are determined by PowerPoint. They're typically saved by using names such as Slide1.wmf, Slide2.wmf. The path of the saved files is specified in the Path argument.


This example saves the active presentation as a Microsoft PowerPoint presentation and then exports each slide in the presentation as a Portable Network Graphics (PNG) file that will be saved in the Current Work folder. The example also exports each slide with a height of 100 pixels and a width of 100 pixels.

With ActivePresentation
    .SaveAs FileName:="c:\Current Work\Annual Sales", _
    .Export Path:="c:\Current Work", FilterName:="png", _
        ScaleWidth:=100, ScaleHeight:=100
End With

See also


Presentation Object

© 2018 Microsoft