Copy link to clipboard
Copied
Hello,
I have an Access vba application that drives InDesign to create a catalog by managing pages, entering text, etc. It has been working for years.
It stopped working with InDesign version 15.0.1 where I get an "ActiveX component cannot create an object" message (translated from french, it may be somewhat different in english).
The line that trigger this error is:
Set myInDesign = CreateObject("InDesign.application")
I tried to downgrade InDesign to version 15.0 and it works.
So there is obviously somthing wrong with version 15.0.1 regarding this point.
Any idea?
Thank you
Patrick
Hello,
Thank you for your answer. I reinstalled 15.0.1 to try it and... it actually worked without!
So, the solution was to reinstall InDesign. I must admit I didn't try that before because I had the exact same problem on two different machines...
I keep your answer for the next erro 🙂
Copy link to clipboard
Copied
With 15.0.1 installed, try targetting InDesign 2020
Set myInDesign = CreateObject("InDesign.Application.2020")
Copy link to clipboard
Copied
Hello,
Thank you for your answer. I reinstalled 15.0.1 to try it and... it actually worked without!
So, the solution was to reinstall InDesign. I must admit I didn't try that before because I had the exact same problem on two different machines...
I keep your answer for the next erro 🙂
Copy link to clipboard
Copied
I am getting the same "ActiveX component cannot create an object" error using a Visual Basic application with InDesign version 17.0.1. Is this still the correct syntax?
Set myInDesign = CreateObject("InDesign.Application.2020")
Copy link to clipboard
Copied
No, version 17 is 2022.
Here's the solution that worked for me when I encountered this error.