none
powerpoint 2007 macro error RRS feed

  • Question


  • I'm trying to create a simple macro in powerpoint 2007 to save the active presentation as a pdf. I tried the example on the MS site here:

    http://msdn.microsoft.com/en-us/library/office/ff746080.aspx

    Public Sub ExportAsFixedFormat_Example() 
    
       ActivePresentation.ExportAsFixedFormat "C:\Users\username\Documents\test.pdf", ppFixedFormatTypePDF, ppFixedFormatIntentScreen, msoCTrue, ppPrintHandoutHorizontalFirst, ppPrintOutputBuildSlides, msoFalse, , , , False, False, False, False, False 
    
    End Sub

    and I keep getting this error:

    run-time error '-2147467259 (80004005)':
    Method ExportAsFixedFormat of object '_Presentation' failed

    What does this mean & how can I fix it? Thanks!

    Friday, September 27, 2013 12:27 PM

All replies

  • Try changing ppPrintOutputBuildSlides to ppPrintOutputSlides

    Regards, Hans Vogelaar (http://www.eileenslounge.com)

    Friday, September 27, 2013 1:54 PM