Hi,
Im trying to copy a slide in a ppt using the following code:
the ppt opens correctly but everything I trying to do with it results in a error:
"activex component can't create object"
what is going wrong here?
Im trying to copy a slide in a ppt using the following code:
Code:
Sub openppt()
Dim PowerPointApp As PowerPoint.Application
Set PowerPointApp = CreateObject("PowerPoint.Application")
PowerPointApp.Presentations.Open ("C:\test\template.pptx")
ActivePresentation.Slides(1).Duplicate
End Sub
the ppt opens correctly but everything I trying to do with it results in a error:
"activex component can't create object"
what is going wrong here?