Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

cannot establish COM Application object "InDesign.Application.CS6"

$
0
0

I run VBA scripts in Microsoft Excel 2010 that communicate with InDesign via COM Interface.

I did that successfully using InDesign CS4 and CS5, but with CS6 the Connection from Excel to the InDesign Application does not establish. The lines:

 

Dim InApp As InDesign.Application

Set InApp = CreateObject("InDesign.Application.CS6")

 

result in "error 13 type mismatch"

 

I checked the following

  • reference to the tlb file is correct
  • when typing commands in Excel VBA editor, IntelliSense Shows all the methods and properties, so the library must be present
  • When InDesign CS6 is not running, it will start up, then the error Shows up
  • The line "CreateObject("InDesign.Application.CS6")" runs without error, I just cannot assign the object returned to the variable

 

What to do?


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>