你引用AutoCad的类型库了么?
没有的话这样:
Dim acadapp As Object Private Sub Command1_Click() Call 连接AutoCAD End Sub Public Sub 连接AutoCAD() On Error Resume Next Set acadapp = GetObject(, "AutoCAD.Application") If Err.Number Then MsgBox (Err.Description) Err.Clear Set acadapp = CreateObject("AutoCAD.Application") End If End Sub