Public acadApp As AcadApplication
Public Sub OpenAutoCAD()
On Error Resume Next
Set acadApp = GetObject(, "AutoCAD.Application")
If Err Then
Err.Clear
Set acadApp = CreateObject("AutoCAD.Application")
If Err Then
MsgBox Err.Description
End
Exit Sub
End If
End If
acadApp.Visible = True
End Sub
提示ActiveX对象不能创建
我已经引用了CAD2000类型库了