VBA works for me but not others...

BenGee

Board Regular
Joined
Mar 5, 2016
Messages
196
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;
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
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Do the others have PowerPoint installed and working properly? Which version of Office is it?
 
Upvote 0
The others PowerPoint appears to be installed / working properly - we're using 'Office 365 and office updates'... Though I've seen they're using version 2304 in PowerPoint whereas I'm using version 2305, could this be why?
 
Upvote 0

Forum statistics

Threads
1,215,376
Messages
6,124,593
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top