I am trying to load the 'Microsoft PowerPoint 14.0 Object Library' in VBA.
I am using a Mac and Excel 2016.
Sub MyPPT()
Dim VBProj As VBIDE.VBProject
Set VBProj = ThisWorkbook.VBProject
VBProj.References.AddFromFile Environ("systemroot") & "/system32/Microsoft PowerPoint.tlb"
Set VBProj = Nothing
End Sub
I get
Run-time error '48':
Error in loading DLL