An object-oriented programming language developed by Microsoft that can be used in .NET.
- As per my understanding you may be missed to 'Set' controls.
Dim Rang As Range
Set Rang = ActiveDocument.Range
Thanks.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
An object-oriented programming language developed by Microsoft that can be used in .NET.
Dim Rang As Range
Set Rang = ActiveDocument.Range
Thanks.
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.
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:
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: