Results 1 to 2 of 2

Thread: open excel file from autocad with out starting a new instance of excel

  1. #1
    Login to Give a bone
    0

    Default open excel file from autocad with out starting a new instance of excel

    Hi I have this working opening in a new instance using startapp. I am wanting to modify it to open the already open instance of excel. This is a snip from my lisp file.

    (startapp "C:\\Program Files (x86)\\Microsoft Office\\Office14\\excel.exe " path))

    path value is "\"Drive:\\Folder\\Subfolder\\99999*.xls"
    path value is made from cutting parts out of the location of my current .dwg to find the related excel file. The excel file name is the same value as the folder my .dwg is plus a persons initials.

    the excel filename can have additional charcters and will open correctly. I used .xls as it will open .xls and .xlsx just fine.

    Hopefully this makes sense.

    Rather than using "startapp" to start the excel program then opening the excel file iI just want the excel file to open in the excel that is already open. I just do not know what to use.

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: open excel file from autocad with out starting a new instance of excel

    R.K. McSwain | CAD Panacea |

Similar Threads

  1. Replies: 5
    Last Post: 2013-10-16, 05:39 PM
  2. Lisp to OPEN and excel file from AutoCAD
    By Robb-az in forum AutoLISP
    Replies: 2
    Last Post: 2009-05-21, 07:21 PM
  3. Excel - Cannot Open A Pasted Excel File
    By omorah in forum AutoCAD General
    Replies: 2
    Last Post: 2008-08-08, 06:50 PM
  4. Replies: 22
    Last Post: 2006-07-27, 08:15 PM
  5. get already open excel file
    By jcoon in forum VBA/COM Interop
    Replies: 2
    Last Post: 2004-08-22, 04:20 PM

Posting Permissions

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