Results 1 to 10 of 10

Thread: open acad drawings within excel VBA

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    Sep 2005
    Posts
    8
    Location

    Excel 2010

    Quote Originally Posted by garylee
    The following code works to check if autocad is already running

    Dim AcadApp as AcadApplication
    If AcadApp Is Nothing Then
            Set AcadApp = CreateObject("AutoCAD.Application")
    Else
            Set AcadApp = GetObject(, "AutoCAD.Application")
    End If

    great thanks to Tommy

    I just tried this on VBA of EXCEL 2010. It simply does not work. I get the following error message:
    user-defined type not defined
    when I debug, the error refers to the line below

    Dim AcadApp As AcadApplication
    Am I missing something?

    Thanks
    Last edited by Aussiebear; 04-09-2023 at 04:43 AM. Reason: Adjusted the code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •