Inserting Data from Excel Worksheets


If you want to insert data from an Excel worksheet, you can, of course, copy it into a Word document with the Copy and Paste commands. (Select the desired cells in Excel, issue the Copy command, switch to the Word document, click at the desired location, and issue the Paste command.)

When you use this method, Word puts the Excel data in a table, which you can format and modify with the techniques you learned in Hour 15, "Columns and Tables." In Figure 20.1, the data in the table was pasted from an Excel worksheet.

Figure 20.1. Excel data that you insert with the Copy and Paste commands appears in a Word table.

graphics/20fig01.jpg

This method has two drawbacks. First, the Excel formulas are converted to plain numbers, so they won't update if you revise any of the numbers in the table. Second, no link exists between the pasted data in the Word document and the original data in the Excel worksheet, so revising the data in Excel does not update it in Word.

Linking to an Excel Worksheet

One way to avoid these shortcomings is to link the pasted data in Word to the original data in the Excel worksheet. Then whenever you update the data in Excel, it is automatically updated in the Word document.

To insert linked data from Excel into your Word document, follow these steps:

  1. In Excel, select the cells that you want to copy to Word and issue the Copy command.

  2. Switch to the Word document, move the insertion point to the desired location, and choose Edit, Paste Special to display the Paste Special dialog box.

  3. Mark the Paste Link option button, choose Microsoft Office Excel Worksheet Object in the list in the middle of the dialog box (see Figure 20.2), and click OK .

    Figure 20.2. Choose Paste Link in the Paste Special dialog box to link the pasted data with the original data in Excel.

    graphics/20fig02.jpg

  4. Switch back to Excel, press the Esc key to turn off the marquee around the copied data, save, and then close the workbook.

The data is pasted into Word as an object, as shown in Figure 20.3 (the object may be pasted in as an inline or floating object, depending on your settings). You can use techniques you learned in Hour 17, "Manipulating Images," for working with pictures, drawing objects, and WordArt to position the Excel object in your document and format its appearance.

Figure 20.3. Your Excel data appears as an object in Word.

graphics/20fig03.jpg

To edit the data in Excel, double-click the linked object in your Word document. In a moment, the associated worksheet opens in Excel with the linked cells selected (see Figure 20.4). When you revise the data in Excel, it is instantly updated in the Word document. (You can't edit the linked data in the Word document.)

Figure 20.4. With the Paste Link option, any changes you make to the data in Excel are immediately reflected in your Word document.

graphics/20fig04.jpg

graphics/lightbulb_icon.gif

If the Word document isn't open when you revise the data in Excel, it's updated the next time you open the document. If you are ever unsure whether the Excel data in your Word document has been updated with the most recent changes to the linked data in Excel, you can always click the Excel object in your Word document to select it and press F9.


If you move or rename the Excel workbook that contains the source data for linked Excel data in Word, you have to tell Word where to find the file. To do so, follow these steps:

  1. Select the linked object in Word.

  2. Choose Edit, Links to display the Links dialog box.

  3. Click the Change Source button, navigate to and select the workbook in the Change Source dialog box, click the Open button, and then click OK .

graphics/lightbulb_icon.gif

The Change Source dialog box also contains a Break Link button. Use it if you want to disconnect the data in your Word document from the original Excel data so that it no longer updates when you revise the data in Excel.


Embedding Data from an Excel Worksheet

Another option is to embed the Excel data in your Word document. When you use this technique, double-clicking the embedded object displays the Excel interface menus , toolbars , and so onwithin the Word window, so you can use Excel controls to revise the data without ever leaving Word. When you embed data, the Excel data "lives" in the Word document and is not linked to original data in Excel. When you edit the data in the Word document, it does not get updated in the original Excel worksheet, and vice versa.

To embed Excel data in a Word document, follow these steps:

  1. In Excel, select the cells that you want to copy to Word and issue the Copy command.

  2. Switch to the Word document, move the insertion point to the desired location, and choose Edit, Paste Special to display the Paste Special dialog box.

  3. Mark the Paste option button, choose Microsoft Excel Worksheet Object in the list in the middle of the dialog box (see Figure 20.5), and click OK .

    Figure 20.5. Choose Paste in the Paste Special dialog box to embed the pasted data in the Word document.

    graphics/20fig05.jpg

  4. Switch back to Excel and press the Esc key to turn off the marquee around the copied data, and then close the workbook.

Just as when you link the data, embedded data is pasted into Word as an object. However, Word responds differently when you double-click an embedded object. Instead of displaying the source data in Excel, it displays the Excel interface in the Word window, as shown in Figure 20.6.

Figure 20.6. You can use Excel controls to edit the embedded data in your Word document.

graphics/20fig06.jpg

You can also start an embedded Excel worksheet from scratch in your Word document instead of beginning with data that you pasted from an existing Excel worksheet. To do so, click the Insert Microsoft Excel Worksheet toolbar button in the Standard toolbar, drag across the number of cells that you want to start out with in the drop-down grid (see Figure 20.7), and release the mouse button. You can now use your Excel skills to create a worksheet within the Word document.

Figure 20.7. To start an empty embedded Excel worksheet, use the Insert Microsoft Excel Worksheet button in the Standard toolbar.

graphics/20fig07.gif



Sams Teach Yourself Microsoft Office Word 2003 in 24 Hours
Sams Teach Yourself Microsoft Office Word 2003 in 24 Hours
ISBN: 067232556X
EAN: 2147483647
Year: 2003
Pages: 315
Authors: Heidi Steele

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net