4 Replies Latest reply on Feb 4, 2017 3:45 PM by LSandford

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

    csab6597 Level 1

      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?