Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

excel 2010 control of Autocad

Status
Not open for further replies.

tuli01

Technical User
Aug 10, 2001
14
US
Hello,

I am using Microsoft Office 2010 and in the excel VBA I am trying to open a new autocad session. It does not work. Is there a mistake or Excel 2010 cannot do the same job excel 2003 did.
The error I get is: User-defined type not defined
Please advise

Thank you

Here is the module:

Public Sub TACAD()

Dim AcadApp As AcadApplication
Dim MyDwg As AcadDocument
Dim DWG As String ' file path

Set AcadApp = GetObject(, "AutoCAD.Application")


End Sub
 
Sound like you need to add a reference to the AutoCAD type libraries...

HTH
Todd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top