Skip to main content
Curtis Keiderling
Participating Frequently
September 30, 2019
Question

ActiveX component can't creata object: 'Illustrator.Application' Illustrator CC 2019 23.0.6

  • September 30, 2019
  • 1 reply
  • 3112 views

We recently upgraded to CC 2019, and now vbscript is unable to access illustrator.

 

Scripts fail with the following error:  ActiveX component can't creata object: 'Illustrator.Application'

on first line.. Set appRef = CreateObject("Illustrator.Application")

This automation ability is an important part of our workflow, so it is important to us to get this fixed.

 

Has anyone else experienced/ solved this error?

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    November 14, 2019

    I recently upgraded to CC 2020, and now vbscript is unable to access illustrator.

    Error message: ActiveX component can't create object 'Illustrator.Application''.

     

    I did try this:  Set appRef = CreateObject("Illustrator.Application.CC.2020"),  but this also crashed.

    Error message:  ActiveX component can't create object 'Illustrator.Application.CC.2020''.

     

    Does anyone has a workaround for this? Thanks in advance.

    Curtis Keiderling
    Participating Frequently
    November 14, 2019

    Hey, juno88,

     

    The way i solved the same problem in 2019 was as follows:

    Open regedit.exe on your computer, and find the reference to the illustrator type library, just by scrolling through all the classes under HKEY_CLASSES_ROOT.  You are looking for something similar to Illustrator.Application.[someothertext].

     

    Then in your vba, refer to that name instead of 'illustrator.application.cc.2020'.

     

    For example, photoshop 2019 type library is listed in the registry as 'Photoshop.Application.130'.

    When i createobject with that text, everything works fine.

     

    Hopefully that helps...

     

    cjk

    Participating Frequently
    November 14, 2019

    Try CreateObject("Illustrator.Application.24")


    OMG, you're a genius. It WORKS  w/ CreateObject("Illustrator.Application.24"). Thank you so much.