VBA Macro: Save a PowerPoint Presentation To PDF Programmatically

If you need to save a PowerPoint presentation to PDF format programmatically using VBA code, here is a simple macro to do the job.

Sub SaveAsPDF()
    ActivePresentation.ExportAsFixedFormat ActivePresentation.Path & "\" & ActivePresentation.Name & ".pdf", ppFixedFormatTypePDF, ppFixedFormatIntentPrint
End Sub

This macro snippet will make possible to save the active presentation to an output PDF file in the same path where you have the presentation saved.

One comment on “VBA Macro: Save a PowerPoint Presentation To PDF Programmatically

  1. Hi your macro to save powerpoint as a pdf was brilliant, is there code where I can then email the pdf document through outlook

Leave a Comment

Your email address will not be published. Required fields are marked *