ActiveX create object error with version 15.0.1

Community Beginner ,
Feb 17, 2020 Feb 17, 2020

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

 

TOPICS
Bug , Scripting , SDK

Views

536

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Feb 18, 2020 Feb 18, 2020

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 🙂

 

Likes

Translate

Translate
Adobe Employee ,
Feb 18, 2020 Feb 18, 2020

Copy link to clipboard

Copied

With 15.0.1 installed, try targetting InDesign 2020

Set myInDesign = CreateObject("InDesign.Application.2020")

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 18, 2020 Feb 18, 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 🙂

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 21, 2021 Dec 21, 2021

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")

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Dec 21, 2021 Dec 21, 2021

Copy link to clipboard

Copied

LATEST

No, version 17 is 2022.

Here's the solution that worked for me when I encountered this error.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines