InDesign CC and Excel Scripting, Type definition in VBA
for years now I am using VBA scripts in Microsoft Excel to control InDesign. I used the code:
Dim InApp as InDesign.Application
Set InApp = CreateObject("InDesign.Application")
but now in InDesign CC 2019 this is a 'type mismatch' error. It works if I do:
Dim InApp as Object
Set InApp = CreateObject("InDesign.Application")
But then of course I do not have any type information in the debugging view and so on. This is extremely annoying, as I have a lot of objects like InDesign.Font, InDesign.Table, InDesign.Swatches etc.
In Excel I think I have the correct reference to the type library "Adobe InDesign CC 2019 Type Library" located at c:\ProgramData\Adobe\InDesign\Version 14\...
How to get this set up properly?
