Exports the sixth slide in the active presentation to the file named Slide6.png in the Z:\Public\Presentations folder, using the PNG format:
Sub exportPNG() ActivePresentation.Slides(6).Export _ FileName:="C:\Slide6.png", FilterName:="PNG" End Sub