Linking Excel Spreadsheets to AutoCAD Tables (AutoCAD 2008+)

You may have heard about how you can link Microsoft spreadsheets to a table in AutoCAD 2008 and have them stay in sync with each other. It is easy to do but it’s not as straight-forward as you might imagine. Here is how to do it in a few easy steps.

STEP 1: Create a data link.
On the command line type DATALINK. In the Data Link Manager dialog box double-click on “Create a new Data Link” and give the link a name.

Data Link Manager

Browse for an file and modify settings in the New Data Link dialog box:

New Excel Data Link

As you can see, you can link to a sheet or a range in . Hit Ok when finished.

If you want to modify your link, simply double-click on the name of your link and the Modify Link dialog box will appear.

(click to view larger picture)
Modify Excel Link

I recommend un-checking “Use formatting” so that my table style matches the CAD standard instead of taking formatting from .

STEP 2: Create a table using a data link.
On the command line type TABLE. Under insert options select the radio button called “From a data link”.

(click to view larger picture)
Table Data Link

Launch the Data Link Manager dialog box:

Launch Data Link Manager

Select a data link and hit OK:

Select a Data Link

Hit OK in the table dialog box and click to insert the upper-left corner of the table into your drawing.

STEP 3: Modify the table.
Select the table, right-click and select Table Style –> [your standard table style]

Table Style

If you don’t have standard table styles already created, I recommend doing so and saving them to your drawing template.

If you want a row of cells to be the header row, you can hold down shift, select the first and last cell in the row, then right-click and select Cell Style –> Header.

Cell Styles

The file will now stay in sync with the AutoCAD table. If you make changes to the file, right-click on the table and select “Update Table ”. Anything you change in the file will be changed in the AutoCAD table as well.

4 Comments so far

  1. Sign up at Gravatar.com to add your picture. Mike Cooley on July 10th, 2008

    In the command line I typed datalink and hit enter, it says Unknown Command, press F1 for help.

    Mike

  2. Sign up at Gravatar.com to add your picture. Josh Jones on July 10th, 2008

    Ah, I should be more specific. You need to be using AutoCAD 2008+.

  3. [...] I talked about Linking Excel Spreadsheets to AutoCAD Tables but this time I am going to show you an even simpler way to get Excel data into an AutoCAD [...]

  4. Sign up at Gravatar.com to add your picture. Lazy Drafter » Table Wrapping on August 17th, 2008

    [...] is especially useful when your table is linked from an Excel spreadsheet. If the table gets too long vertically, you can simply make the table wrap by dragging that [...]

Leave a reply