Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Access Excel from ACAD

  1. #1
    Active Member csorensen's Avatar
    Join Date
    2005-04
    Posts
    66

    Default Access Excel from ACAD

    Is there away to access an Excel spreadsheet straight from ACAD? Let's say I'm working in ACAD and I need to access a spreadsheet that I use a lot, I can click a button on my toolbar and it will open the spreadsheet.

  2. #2
    All AUGI, all the time buzz's Avatar
    Join Date
    2007-10
    Location
    Tucson, Arizona
    Posts
    613

    Default Re: Access Excel from ACAD

    Yep, by using the SHELL command.

    -Buzz
    no trophy, no flowers, no flashbulbs, no line,
    he's haunted by something he cannot define...
    humble genius

  3. #3
    All AUGI, all the time TerribleTim's Avatar
    Join Date
    2006-03
    Location
    Tacoma, Wa
    Posts
    627

    Default Re: Access Excel from ACAD

    Quote Originally Posted by buzz View Post
    Yep, by using the SHELL command.

    -Buzz
    Why not just open it from windows exploder then?

    Are you talking about an Excel sheet that is on your drawing? Or just a random Excel file?
    Tim McDougald
    CAD/BIM Manager / Assistant P.M.
    KMB Design Groups, Inc. P.S.
    828 7th Avenue SE - Olympia, Washington 98501

    HayWire Racing
    1101 124th Street South, Suite B - Tacoma, Washington 98444

  4. #4
    All AUGI, all the time buzz's Avatar
    Join Date
    2007-10
    Location
    Tucson, Arizona
    Posts
    613

    Default Re: Access Excel from ACAD

    Why not just open it from windows exploder then?
    Are you asking me (cause you quoted me)?

    The SHELL command can be put into a button and point directly to a file (.xls file in this case) - and it will open the file using Excel. So, like the OP wanted, you can click on a toolbar button and have it directly open an Excel file.

    -Buzz
    no trophy, no flowers, no flashbulbs, no line,
    he's haunted by something he cannot define...
    humble genius

  5. #5
    Active Member csorensen's Avatar
    Join Date
    2005-04
    Posts
    66

    Question Re: Access Excel from ACAD

    I can get to Excel by using shell, but is there a way to go directly to an existing spreadsheet? Or does this envolve more code?

  6. #6
    All AUGI, all the time Statler's Avatar
    Join Date
    2002-01
    Location
    At right angles to reality
    Posts
    512

    Default Re: Access Excel from ACAD

    Quote Originally Posted by csorensen View Post
    I can get to Excel by using shell, but is there a way to go directly to an existing spreadsheet? Or does this envolve more code?
    The files drawing related? you could insert as on OLE object them with a link.
    Richard
    --------------
    Some Days it's not even worth chewing through the restraints.

  7. #7
    All AUGI, all the time buzz's Avatar
    Join Date
    2007-10
    Location
    Tucson, Arizona
    Posts
    613

    Default Re: Access Excel from ACAD

    Quote Originally Posted by csorensen View Post
    I can get to Excel by using shell, but is there a way to go directly to an existing spreadsheet? Or does this envolve more code?
    Yes, just use the file path... so for example, if you wanted to open the file C:\MyFiles\ExcelStuff\AwesomeExcelCalc.xls you would have this:

    (command "shell" "C:\\MyFiles\\ExcelStuff\\AwesomeExcelCalc.xls" )

    -Buzz
    no trophy, no flowers, no flashbulbs, no line,
    he's haunted by something he cannot define...
    humble genius

  8. #8
    All AUGI, all the time TerribleTim's Avatar
    Join Date
    2006-03
    Location
    Tacoma, Wa
    Posts
    627

    Default Re: Access Excel from ACAD

    Quote Originally Posted by buzz View Post
    Are you asking me (cause you quoted me)?
    I was, 'cause I was not real sure how you were going about that. Thanks for the explenation.

    Quote Originally Posted by buzz View Post
    The SHELL command can be put into a button and point directly to a file (.xls file in this case) - and it will open the file using Excel. So, like the OP wanted, you can click on a toolbar button and have it directly open an Excel file.

    -Buzz
    Just seems like it would be just as easy to click "start button, open office document". I'm looking for why using shell is better. I know he asked if it could be done, just not sure why you would want to.
    Tim McDougald
    CAD/BIM Manager / Assistant P.M.
    KMB Design Groups, Inc. P.S.
    828 7th Avenue SE - Olympia, Washington 98501

    HayWire Racing
    1101 124th Street South, Suite B - Tacoma, Washington 98444

  9. #9
    Active Member csorensen's Avatar
    Join Date
    2005-04
    Posts
    66

    Default Re: Access Excel from ACAD

    Quote Originally Posted by TeriblTim View Post
    I know he asked if it could be done, just not sure why you would want to.
    We have an Excel spreadsheet we use sometimes to figure items that go on to our drawings. I just thought I could make it easier to just click one button that would bring the spreadsheet up automatically, than it would be to click out of the drawing and go into the spreadsheet. It's all about the clicks man.


    (command "shell" "G:\\MSOffice\\Templates\\DrawingItems.xlt" )


    Got it to work on the command line, but having a heck of a time getting it to work in the toolbar. This is what comes up on the command line:
    (command "shell" "g: <Enter>
    ("_> <Enter>
    ("_> msoffice <Enter>
    ("_> <Enter>
    ("_> templates <Enter> and so on all the way throught the path. Then after it gets through it, it just continues to give me ("_> each time I press enter, until I cancel out of it.

  10. #10
    AUGI Addict
    Join Date
    2006-12
    Posts
    1,500

    Default Re: Access Excel from ACAD

    Hyperlink it to the titleblock (or other common item) in the DWT template file.
    If you are going to fly by the seat of your pants, expect friction burns.
    Windows XP is now over 10 years old, in software terms it makes Joan Collins look like the new kid on the block. - Statler
    Everyone else being wrong is not the same thing as being right.

Page 1 of 3 123 LastLast

Similar Threads

  1. Cannot create link to Excel or Access
    By mohamed1984_h.260631 in forum NavisWorks - General
    Replies: 1
    Last Post: 2010-08-30, 07:55 PM
  2. Access or Excel
    By dzatto in forum Software
    Replies: 6
    Last Post: 2008-07-29, 01:00 PM
  3. access or excel?
    By kadar_drafting in forum ACA General
    Replies: 3
    Last Post: 2006-09-16, 04:55 AM
  4. From acad (only acad) File\Open I am unable to access my C: drive
    By jaberwok in forum CAD Management - General
    Replies: 27
    Last Post: 2005-11-13, 06:53 PM
  5. Excel or Access to MAP
    By amberh in forum AutoCAD Map 3D - General
    Replies: 3
    Last Post: 2004-06-30, 05:34 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
  •