Run-time Error 429. ActiveX component can't create object
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am using VB6 and AutoCAD 2017. I recently changed to a new machine with Windows 10. Many programs that I have written in the past now give Run-time error 429. ActiveX component can't create object.
So I tried a following simple short program to test it out. I got the same error. Funny thing is when I compile this program, the AutoCAD starts without any error.
Private Sub Command1_Click()
Dim objAcadApp As AcadApplication
'Set objAcadApp = New AcadApplication
Set objAcadApp = CreateObject("AutoCAD.Application.21")
objAcadApp.Visible = True
End Sub
In above program, I tried both lines New AcadApplication and CreateObject.
I also tried to open Excel and Word and they work fine.
I have searched the forum for this issue but could not find any helpful solution.
Any help will be appreciated.