Hi, the below code works for me however does not work for others. We're all working from the same version of Excel, opening independently the file from the same network location, and I've compared our Trust Centre settings and the same libraries / references have been checked (in VBA > Tools > References).
What am I missing or doing wrong please?
Here's the code;
And the error I get is a run-time error '429' - ActiveX component can't create object against this part;
Thanks in advance
What am I missing or doing wrong please?
Here's the code;
VBA Code:
Dim pptApp As Object
Set pptApp = CreateObject("PowerPoint.Application")
With pptApp
Set ppt = .Presentations.Add
With ppt
Application.CutCopyMode = False
Set newSlide = .slides.Add(.slides.Count + 1, 12)
ActiveSheet.Range("A17:W51").Copy
newSlide.Shapes.PasteSpecial DataType:=2
Application.CutCopyMode = False
End With
.Activate
End With
And the error I get is a run-time error '429' - ActiveX component can't create object against this part;
VBA Code:
Set pptApp = CreateObject("PowerPoint.Application")
Thanks in advance