Results 1 to 10 of 10

Thread: open acad drawings within excel VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    open acad drawings within excel VBA

    I would like to know how to open an autocad drawing within excel VBA.

    I wrote the following code but it gives me a run-time error '419'
    ActiveX component can't create object

    Dim AcadApp as Acadapplication
     Dim MyDwg as AcadDocument
     Dim DWG as string  ' file path
     
     Set AcadApp = GetObject(, "AutoCAD.Application")
     Set MyDwg = AcadApp.Documents.Open(DWG)
    reply feel free to contact me if more info required..


    thank you very much

    gary lee
    email: spedia3214@yahoo.com
    Last edited by Aussiebear; 04-09-2023 at 04:39 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
  •