Working with Tables


Word's table feature gives you a wonderfully flexible way of aligning text in a grid of rows and columns . You enter text into the individual boxes in the grid, which are referred to as cells . You can create a table that looks table-ish, like the one shown in Figure 8.14.

Figure 8.14. This table doesn't disguise its true nature.

graphics/08fig14.gif

But you can also create tables that are "invisible" by hiding the gridlines between cells. The rsum shown in Figure 8.15 is actually typed in a table, but the gridlines have been hidden so that it's not obvious.

Figure 8.15. Tables don't have to look like they belong in a scientific paper.

graphics/08fig15.gif

Creating a Table

Word gives you two methods for creating tables. With the standard method, you tell Word to create a table with a particular number of rows and columns, and then revise it from there. With the second method, you "draw" the table with your mouse. The first method is a little faster, but the second is better for creating a more complex table such as the one shown earlier in Figure 8.5.

Using the Standard Method

To create a table using the standard method, you can either use the Insert Table button on the Standard toolbar or choose Insert, Table; the end result is the same. In these steps, you use the Insert Table toolbar button because it's a little more efficient.

Follow these steps to insert a table with the standard method:

  1. Move the insertion point to the place where you want to insert the table.

  2. Click the Insert Table button on the Standard toolbar.

  3. The squares in the grid that drops down represent cells. Drag through the approximate number of rows and columns that you want (see Figure 8.16), and then release the mouse button.

    Figure 8.16. Drag through the number of rows and columns that you want to start off with.

    graphics/08fig16.gif

A table appears in your document.

Drawing a Table

To draw a table, you use the Draw Table button on the Tables and Borders toolbar. (This tool is available in Print Layout view; it isn't in Normal view.) Although you can start by drawing a single cell and then add on, it's usually more straightforward to draw the outline of a table and then fill in the rows and columns. This method of creating a table is extremely flexible; if you can envision a design for your table, you can almost certainly create it.

To draw a table, follow these steps:

  1. Make sure you're in Print Layout view, and then click the Tables and Borders button on the Standard toolbar to display the Tables and Borders toolbar.

  2. Click the Draw Table button if it isn't already selected ( pushed in). Your mouse pointer now looks like a small pencil when it's over your document.

  3. Display the Line Style list and choose a line style for the outside border of your table.

  4. Display the Line Weight list and choose a line weight for the outside border of your table.

  5. Click the Border Color button and click a color for the outside border of your table in the drop-down palette.

  6. Starting in the upper-left corner, drag diagonally down and to the right, releasing the mouse button when the outline is the right size (see Figure 8.17). Word creates the outside border of your table.

    Figure 8.17. Drag until the outline of your table is approximately the right size.

    graphics/08fig17.gif

  7. Now repeat steps 35 to choose what kind of inside lines you want, and draw them with the Draw Table tool (see Figure 8.18). If you want to remove a line, click the Eraser toolbar button and then draw over the line. When you release the mouse button, the line disappears.

    Figure 8.18. Draw the inside lines in your table.

    graphics/08fig18.gif

    graphics/bookpencil_icon.gif

    You can draw lines to divide up the inside of the table however you like. You are not restricted to a standard grid. You can create cells of different sizes depending on what you're using the table for. Word even lets you draw diagonal lines.


  8. Click the Draw Table button to turn it off, and enter the text in the table (see the next section).

Typing, Navigating, and Selecting in a Table

Typing, navigating, and selecting in a table works much like you might expect, with a few twists .

Typing Text in a Table

When you type text in a cell, if the entry is too wide to fit in the cell, Word automatically wraps the text to the next line and increases the row height. In Figure 8.19, the text was allowed to wrap within cells, and the row height adjusted accordingly .

Figure 8.19. Unlike in a spreadsheet program, Word wraps text in cells automatically.

graphics/08fig19.gif

Pressing Enter in a cell ends the paragraph and adds a blank line to that row. (If you accidentally press Enter, press Backspace to remove the blank line.)

graphics/lightbulb_icon.gif

If you want to insert a tab within a cell, press Ctrl+Tab instead of Tab. (Pressing the Tab key by itself just selects the contents of the cell to the right.)


Navigating in a Table

Navigating in a table with the mouse is just a matter of clicking in the cell you want to move to. To navigate with the keyboard, refer to Table 8.1.

Table 8.1. Keyboard Techniques for Moving the Insertion Point in a Table

Navigation Technique

Moves the Insertion Point

Down one row

Up one row

One cell to the right, or character by character to the right if the cell contains text

One cell to the left, or character by character to the left if the cell contains text

Tab

One cell to the right; if the cell to the right contains text, it will be selected

Shift+Tab

One cell to the left; if the cell to the left contains text, it will be selected

Selecting Parts of a Table

Selecting is a big deal in a table. In many cases, you have to select the part of the table that you want to affect before issuing a command. For this reason, it's worth taking a few moments to practice the various selection techniques outlined in Table 8.2. Before you do, check to make sure the Draw Table and Eraser buttons in the Tables and Borders toolbar are turned off.

Table 8.2. Selection Shortcuts In A Table

Amount Selected

Technique

One cell

Point just inside the left edge of the cell. When the mouse pointer becomes a black arrow, click once.

A group of cells

Select the first cell and then drag over the additional adjacent cells.

One row

Rest the mouse pointer outside of the left border of the tableit should be a white arrow angled toward the table. Click once. (If you've increased the row height or you drew your table, only the top of each cell in the row becomes highlighted. Don't worry; the row is selected.)

Multiple rows

Select the first row and then drag straight up or down to add rows to the selection.

One column

Rest the mouse pointer on the top border of the column. When it changes to a small downward-pointing arrow, click once. You can also Alt+click anywhere in the column.

Multiple columns

Select the first column and then continue dragging to the right or left to add columns to the selection.

Entire table

Click the four-headed arrow icon just outside the upper-left corner of the table. (This icon appears only when the Draw Table and Eraser tools are turned off.)

Changing the Structure of a Table

As you enter text in a table, you will almost certainly need to change its structure. Here you learn the most common adjustments that you'll need to make. As you experiment with these techniques, keep in mind that Word does not prevent you from making a table too wide to fit on the page. If you're adding columns and increasing column widths, check periodically to make sure that table isn't running off the page. (You have to check in Print Layout view or Print PreviewNormal view won't do the trick.)

graphics/lightbulb_icon.gif

Most of the commands in the Table menu are active only when the insertion point is in a table.


Adding and Deleting Rows and Columns

If you want to add a row at the end of the table, click anywhere in the lower-right cell in the table, and press the Tab key.

To add a row in the middle of the table, select the row below the location of the new one, and click the Insert Rows button on the Standard toolbar. (The Insert Table button turns into Insert Rows when a row is selected.) If you want to add two or more rows, select that number of rows before clicking the Insert Rows button.

To insert a column, select the column to the right of where the new one will go, and click the Insert Columns button on the Standard toolbar. (The Insert Table button turns into Insert Columns when a column is selected.) Again, you can add two or more columns at once by selecting that number before clicking the Insert Columns button.

If you want to delete a row or column, select it first, and then choose Table, Delete, Rows or Table, Delete, Columns (or right-click the selected row or column and choose Delete Rows or Delete Columns).

Merging and Splitting Cells

When you merge cells, they become one larger cell. You might, for example, merge all the cells in the top row of a table to create a large cell in which to type a centered title. You can merge cells that are horizontally or vertically adjacent to one another. To merge cells, first select them, and then click the Merge Cells button in the Tables and Borders toolbar.

graphics/bookpencil_icon.gif

Merging cells is not the same as hiding the lines that separate them. When you merge cells, they become one. When you hide the lines, the cells remain separate.


You can also split a cell into two cells. To do so, click in the cell and then click the Split Cells toolbar button.

graphics/lightbulb_icon.gif

Another way to merge cells is to erase the lines between them with the Eraser tool in the Tables and Borders toolbar. And you can split a cell by drawing a line through it with the Draw Table tool.


Formatting a Table

Formatting a table can take far longer than creating it in the first place. Try not to overdo it. If your table is plastered with wild colors, fancy lines, and flamboyant fonts, the text it contains will be almost impossible to read. Also, be careful to select the exact cells that you want to format before issuing a command, and remember that you can always use Undo if you make a change that you don't like.

At the risk of stating the obvious, you can apply all the regular font and paragraph formatting in a table. Select the part of the table that you want to affect, and then use the familiar options in the Formatting toolbar, Font and Paragraph dialog boxes, and so on. The next four sections describe formatting that's specific to tables.

Changing the Appearance of Lines and Adding Shading

To change the appearance of the lines in your table, choose the desired options in the Line Style, Line Weight, and Border Color lists in the Tables and Borders toolbar. (If you want to hide the lines, choose No Border in the Line Style list.) Then turn on the Draw Table tool, if necessary, and draw over the lines you want to affect.

To apply shading, select the desired part of the table, display the Shading Color list in the Tables and Borders toolbar, and click the desired color.

Resizing Columns, Rows, and the Entire Table

To adjust a column's width, drag its right border. To adjust a row's height, drag its bottom border. (When you point to any line in a table, the mouse pointer changes to a double-headed arrow to remind you that you can drag to resize.)

If you want to make multiple rows the same height, or multiple columns the same width, select the rows or columns, and then click the Distribute Rows Evenly or Distribute Columns Evenly button on the Tables and Borders toolbar.

To proportionally resize the entire table, make sure the Draw Table and Eraser tools are turned off, and point to the small square just outside the lower-right corner. Then drag diagonally up and to the left to shrink the table, or down and to the right to enlarge it. If you don't see this square, make sure the Draw Table and Eraser tools are turned off, and rest the mouse pointer inside the table.

Adjusting the Position of the Table on the Page

To move your table around on the page, drag the four-headed arrow icon located just outside the upper-left corner of the table.

Aligning Text and Changing Its Direction

To change the vertical/horizontal alignment of text in your table, select the cells whose alignment you want to change, display the Align list, and click the desired option. To change the direction of text from the default left-to-right to either bottom-to-top or top-to-bottom, select the cell and then click the Change Text Direction button one or more times (see Figure 8.20).

Figure 8.20. Use the Align and Change Text Direction tools to play with the appearance of text in a table.

graphics/08fig20.gif

Sorting Rows in a Table

The fastest way to sort rows in a table is to use the Tables and Borders toolbar. Click in the column that you want to sort by, and click the Sort Ascending or Sort Descending button. Word assumes that you want to sort all rows but the first. If you want to include the first row, click in the column to sort by, choose Table, Sort , mark the No Header Row option button, and click OK.

graphics/lightbulb_icon.gif

If you have entered numbers in a column, you can have Word total them automatically. Click in the last cell in the column and then click the AutoSum toolbar button to insert a field that sums the numbers above. If you later change some of the numbers , remember to update the field. (It won't update automatically.)




Sams Teach Yourself Office Productivity All in One
Sams Teach Yourself Office Productivity All in One (Sams Teach Yourself All in One)
ISBN: 0672325349
EAN: 2147483647
Year: 2003
Pages: 474
Authors: Greg Perry

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