See the top rated post in this thread. Click here

Results 1 to 6 of 6

Thread: Open a specif exel file from AutoCAD

  1. #1
    Active Member
    Join Date
    2008-01
    Location
    Madison, WI
    Posts
    81
    Login to Give a bone
    0

    Question Open a specif exel file from AutoCAD

    I have been trying to figure out how to open a specific sreadsheet from AutoCAD. I can open Exel by using (startapp "C:/.../exel.exe") without any problem, but how do I tell it to open a specific file?
    Any ideas?

    thank you for your help!

  2. #2
    Super Moderator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,746
    Login to Give a bone
    1

    Default Re: Open a specif exel file from AutoCAD

    If this is just for you, then something like this should work, after you change the path to Excel if needed.

    Code:
    (startapp "C:\\Program Files\\Microsoft Office\\Office12\\EXCEL.EXE" "C:\\Book1.xlsx")
    But if you are using this on different machines, then the path could be different. A better solution is to let Windows open the associated program.

    There is an example here of opening a PDF, just change the name of the file to your Excel file and it should work no matter what version of Excel you have or where it's located on the system.
    R.K. McSwain | CAD Panacea |

  3. #3
    Active Member
    Join Date
    2008-01
    Location
    Madison, WI
    Posts
    81
    Login to Give a bone
    1

    Talking Re: Open a specif exel file from AutoCAD

    works perfectly, thank you!

  4. #4
    100 Club sandeep_koodal's Avatar
    Join Date
    2007-10
    Location
    God's Own Country
    Posts
    183
    Login to Give a bone
    0

    Thumbs up Re: Open a specif exel file from AutoCAD

    Click "Open" icon and type *.* on the file name tab and browse, then right click the file name and choose from options

  5. #5
    Certifiable AUGI Addict robert.1.hall72202's Avatar
    Join Date
    2004-07
    Location
    Detroit Michigan
    Posts
    2,508
    Login to Give a bone
    0

    Default Re: Open a specif exel file from AutoCAD

    Would the windows quick launch toolbar work for you?
    I have a half dozen shortcuts to spreadsheets on the windows taskbar.
    It can be set to autohide so it moves out of the way when drawing.

  6. #6
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Open a specif exel file from AutoCAD

    What about placing a hyperlink (Ctrl+K) on one of the objects in the DWG pointing to the file. Thereafter hold down Ctrl and pick the object.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

Similar Threads

  1. Exel opens in Wrong Version of autocad
    By leinaD in forum AutoCAD General
    Replies: 2
    Last Post: 2010-06-14, 02:13 PM
  2. Replies: 10
    Last Post: 2007-02-07, 07:43 PM
  3. Replies: 15
    Last Post: 2006-11-23, 03:47 AM
  4. Replies: 2
    Last Post: 2006-03-24, 10:14 AM
  5. Lost File/Open File/Save Dialog Box on Autocad 2000i
    By thegoffs.89856 in forum AutoCAD General
    Replies: 3
    Last Post: 2005-06-30, 09:05 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
  •