09-28-2025, 11:51 AM
I have a macro that connects to powerpoint, first lines are:
Function pp_run_macro_direct
It used to work on my old laptop with windows 10. On my new laptop with windows 11 the macro compiles fine, and the exe is created, but running it triggers the 'failed to connect to powerpoint' message (and powerpoint is running). The typelib line does point to the right OLB file (it is powerpoint 2013).
How can I find out what the problem is?
Function pp_run_macro_direct
;/exe 1
typelib PowerPoint "$program files$\Microsoft Office\Office15\MSPPT.OLB"
PowerPoint.Application ap._getactive; err end "failed to connect to PowerPoint. Try to run this macro in separate process as User."It used to work on my old laptop with windows 10. On my new laptop with windows 11 the macro compiles fine, and the exe is created, but running it triggers the 'failed to connect to powerpoint' message (and powerpoint is running). The typelib line does point to the right OLB file (it is powerpoint 2013).
How can I find out what the problem is?
