• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

ExportAsFixedFormat Issue

coolkiran

Member
Hi Again

I have a code to export active presentation to PDF in Excel macro.
Code:
Dim PPApp As Object
Dim PPPres As PowerPoint.Presentation
Dim PPSlide As PowerPoint.Slide
Set PPApp = GetObject(, "Powerpoint.Application")
Set PPPres = PPApp.ActivePresentation
Dim SaveName As String
SaveName = ReportSavePath
PPPres.ExportAsFixedFormat SaveName, ppFixedFormatTypePDF, ppFixedFormatIntentPrint

When i run the code, i am getting error for ExportAsFixedFormat line
as : "Method 'ExportAsFixedFormat' of object'_Presenatation' failed.

Anyone have any suggestion
 
Thanks Hui

I have already created powerpoint from my excel data, once i created my powerpoint, i want to save that powerpoint in pdf format as well. so i used the above code. Its showing error.

Assist me.
 
Back
Top