Share via

ActivX component can't create object

Mohitkumar Parmar 0 Reputation points
2026-05-06T10:28:24.11+00:00

Screenshot 2026-05-06 155652

Developer technologies | VB
0 comments No comments

3 answers

Sort by: Most helpful
  1. Senthil kumar 190 Reputation points
    2026-05-06T13:03:09.5933333+00:00

    Hi Mohitkumar Parmar,

    • As per my understanding you may be missed to 'Set' controls.
    Dim Rang As Range
    Set Rang = ActiveDocument.Range
    

    Thanks.

    0 comments No comments

  2. Varsha Dundigalla(INFOSYS LIMITED) 4,945 Reputation points Microsoft External Staff
    2026-05-06T11:08:09.07+00:00

    Thank you for reaching out.

    This error usually happens when the program is trying to create an ActiveX (COM) object but it is not available on the machine. In most cases, the required component is not installed, not registered, or there is a mismatch between 32-bit and 64-bit versions.

    I would suggest checking if the component used in the code is installed correctly and registered on the system. If it is a DLL or OCX file, please make sure it is registered using the correct version of regsvr32. Also confirm that the application and the component are both using the same architecture (either both 32-bit or both 64-bit).

    If the issue still continues, please share the piece of code where the object is being created and the name of the component being used, so we can help further.

    Please let us know if you require any further assistance, we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer". So that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.


  3. Q&A Assist
    2026-05-06T10:28:52.2733333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Run-time error 429 means the COM/ActiveX component that the Visual Basic code is trying to create cannot be instantiated.

    Typical causes and fixes from the provided material:

    1. Class not registered
    • The class for the object is missing or incorrectly registered in the system registry, or points to a file that cannot be found.
    • Start the application that owns the object; if that does not repair the registration, rerun the application’s setup/installation so it correctly registers its COM classes.
    1. Required DLL missing or damaged
    • A dynamic-link library that the object depends on is missing or corrupted.
    • Ensure all required DLLs for the component are present; if necessary, rerun the setup for that component so its supporting DLLs are reinstalled.
    1. Licensed Automation object cannot verify license
    • The object is present but is a licensed Automation object and cannot find its license key (for example, a registry entry or a .lic file).
    • Make sure the object is properly installed via its setup program or a type/object library so the correct license key is registered.
    1. Incorrect use of GetObject
    • GetObject cannot be used to obtain a reference to a class created with Visual Basic.
    • Use CreateObject or the New operator instead when instantiating a VB-created class.
    1. Access explicitly denied or object locked
    • The code may be trying to access a data object that is currently locked.
    • Retry accessing the object at another time when it is not locked.
    1. Automating Office and error 429
    • When automating Office via New or CreateObject, error 429 indicates COM could not create the requested Office Automation object.
    • Common root causes are mistakes in the application code, system configuration issues, or missing/damaged Office components. Isolate whether the problem occurs only on specific client machines and repair or reinstall Office on those clients if necessary.

    If the error occurs when trying to attach to an already running Office application using GetObject or GetActiveObject, the Office instance may not yet be registered in the Running Object Table (ROT). In that case, switch focus away from the Office application (or wait until it loses focus) before calling GetObject/GetActiveObject, or prefer CreateObject/CoCreateInstance to start a new instance.

    If the error appears when placing an ActiveX control on a form at design time, the registry information for that control is missing or corrupted; reinstall that ActiveX control or contact its vendor.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.