Chapter 11. Printing and Presenting

Controlling the Appearance of Your Pages

Controlling What and Where to Print

Adjusting Page Breaks

Using Print Preview

Creating Portable Documents

MICROSOFT Excel 2010 makes it easy for you to produce polished, professional-looking reports. In this chapter, we explain how to define the layout of your printed pages, control page breaks, and preview your pages for printing.

The options used most often to affect the appearance of your printed pages are available on the Page Layout tab on the ribbon, shown in Figure 11-1. This is the central control panel for setting up paper sizes, margins, and page orientation, as well as for working with page breaks, print areas, and other printing options. For even more control over page layout, click the dialog box launcher in the Page Setup group on the Page Layout tab to display the Page Setup dialog box, also shown in Figure 11-1.

The new File tab in Excel 2010, aka Backstage view, now includes the most-often-used options as well and provides some visual feedback about what all these things actually do. Plus, a print preview is displayed on the right side of the screen and dynamically displays the settings you choose from the options on the left side. Click the File tab, and then click Print to display a screen similar to the one shown in Figure 11-2.

The settings you use most frequently are duplicated in several places. Most of what you need is on the Page Layout tab of the ribbon, in the Print category on the File tab, and, of course, in the Page Setup dialog box. These settings control page orientation, scaling, paper size, print quality, and page numbering.

The Size button on the Page Layout tab includes options for nearly every size of paper available (not just the sizes supported by your printer). You can additionally control the quality of your printout by clicking the Size button and then clicking More Paper Sizes (or clicking the dialog box launcher in the Page Setup group) to display the Page tab in the Page Setup dialog box. The same options are duplicated in the Print category on the File tab.

On the Page tab of the Page Setup dialog box, the Print Quality drop-down list shows the quality options available for your printer. A laser printer, for example, might offer print-quality settings of 600 dots per inch (dpi), 300 dpi, and 150 dpi. Higher dpi settings look better, but a page takes longer to print. If the Print Quality drop-down list is not available, you might be able to adjust these settings—and more—using your printer driver’s dialog box, which you can access by clicking the Options button on the Page tab in the Page Setup dialog box. You can also access the printer driver dialog box by clicking Printer Properties in the Print category on the File tab.

There are several ways to specify a reduction or enlargement ratio for your printouts. Using the Scale To Fit group on the Page Layout tab, you can override the default size of your printouts in one of two ways: by specifying a scaling factor (from 10 percent through 400 percent) or by fitting the printout to a specified number of pages. Excel always scales in both the horizontal and vertical dimensions.

The Width and Height controls on the Page Layout tab, shown in Figure 11-1, normally display Automatic, which means the worksheet prints at full size on as many pages as necessary. In these drop-down lists, choose a number of pages to constrain the printout. For example, choosing 2 Pages in the Width list (and leaving Height set to Automatic) scales the print area of the worksheet so that it spans two pages at its widest point, filling as many pages in length as necessary. Choosing 2 Pages in the Height list (and leaving Width set to Automatic) scales the print area of the worksheet so that it is only two pages long, filling as many pages in width as necessary.

The Fit To options in the Page Setup dialog box give you more precise control over scaling. These mirror the Height and Width controls on the Page Layout tab. To return to a full-size printout, select the Adjust To option and type 100 in the % Normal Size box.

You can also use the Scaling options in the File tab’s Print category. The Print category, shown in Figure 11-3, allows you to specify scaling and other options on the fly just before you send the worksheet to the printer.

image with no caption

Page Layout view represents a major upgrade to the worksheet-printing workflow in comparison with the “old” ways of doing things. Not only can you see the page as it will print, as you can with Print Preview, but Excel is fully functional in Page Layout view, so you can make changes and see the results immediately. Click the Page Layout button on the View tab, shown in Figure 11-4. This might become your preferred working environment, if you don’t mind the slight slowdown in performance that comes with a more graphically intensive interface.

In Page Layout view, you can do the following:

In fact, we couldn’t find anything you can’t do in Page Layout view. Page Layout view is applied per worksheet; you can specify a different view for each open worksheet, and the settings are saved with the workbook.

image with no caption

You can adjust the margins of your printouts to allow the maximum amount of data to fit on a page, to customize the amount of space available for headers and footers, or to accommodate special requirements such as three-hole-punched paper, company logos, and so on. The Margins button on the Page Layout tab, shown in Figure 11-5, provides three settings that should meet most of your needs: Normal, Wide, and Narrow. These settings refer to the size of the margins, not the size of the printed area. For example, to fit more data on a page, use the Narrow setting. Note that when you apply your own margin settings, the Last Custom Setting command appears as the first item on the Margins menu, as Figure 11-5 shows. This command does not appear unless you specify your own margin settings. These commands also appear in the Print category on the File tab.

The Margins tab in the Page Setup dialog box offers precise control over the top, bottom, left, and right margins of your printed worksheets. You can display the Margins tab, shown in Figure 11-6, by clicking the Margins button and then clicking Custom Margins.

When you click in any of the text boxes on the Margins tab, the corresponding margin line is highlighted in the sample page in the middle of the dialog box, showing you where the selected margin will appear.

If you want a header or footer to appear on each page, the top and bottom margins need to be large enough to accommodate them. For more information about setting up a header and footer, see Creating a Header and Footer below.

image with no caption

The easiest way to create headers and footers is to click the Header & Footer button on the Insert tab, which simultaneously displays the Header & Footer Tools Design tab, switches the worksheet to Page Layout view, and activates the header for editing, as shown in Figure 11-7.

Both the Header and Footer areas in Page Layout view consist of edit boxes in three sections—left, center, and right—that are formatted with the corresponding justification (that is, the contents of the box on the right are right-justified). Use these edit boxes to insert and format headers and footers using buttons on the Header & Footer Tools Design tab:

Excel uses codes to represent dynamic data in your headers and footers, such as the current time represented by &[Time]. Fortunately, you don’t have to learn these codes to create headers and footers. Click the edit box where you want the information to appear, and then click the appropriate buttons to add the information to your header or footer. Here are some things to remember about editing headers and footers:

The Page Setup dialog box contains the old-school interface for Excel’s header and footer features. You can still use it, but it affords little advantage over the Header & Footer Tools Design tab. Click the Page Layout tab, click the dialog box launcher in the Page Setup group to display the Page Setup dialog box, and then click the Header/Footer tab, as shown in Figure 11-8.

The drop-down lists that appear immediately under the words Header and Footer offer the same lists of predefined options as the eponymous buttons on the Header & Footer Tools Design tab. And the check box options in the dialog box mirror the ones in the Options group on the tab. The three buttons at the bottom of the dialog box are really the only things that offer a little added value here. The Print button takes you directly to the Print screen in Backstage view, and the Print Preview button actually takes you to the same place, since Print Preview now appears in Backstage view as well. The Options button takes you directly to your printer’s Properties dialog box. Click the Custom Header button to display a dialog box similar to the one shown in Figure 11-9.

The Header (and identical Footer) dialog box does almost all the things that the Header & Footer Tools Design tab does. The only difference here is the addition of the Format Text button (the first button on the left), which displays the Font dialog box shown in Figure 11-9.

You can add pictures to custom headers and footers by using the Picture and Format Picture buttons (refer to Figure 11-7). For example, you can insert pictures to add company logos or banners to your documents. Click the Picture button to access the Insert Picture dialog box (a version of the standard Open dialog box), which you use to locate the picture you want to insert. When you insert the picture, Excel includes the code &[Picture], and the image is displayed in the edit box. (Unlike with other header and footer codes, you can’t just type this code—you have to use the Picture button.)

After you insert a picture, click the Format Picture button to specify the size, brightness, and contrast of the picture and to rotate, scale, or crop the picture. (You can’t directly manipulate header or footer pictures—you must use the Format Picture button.) It might take some trial and error to obtain the result you want, adjusting the size of the picture as well as the top or bottom margins to accommodate it. Figure 11-10 shows a sample of a picture used in a header, with the worksheet displayed in Page Layout view.

To arrive at the example shown in Figure 11-10, we did the following:

Clicking the dialog box launcher in the Page Setup group on the Page Layout tab displays the Page Setup dialog box. Click the Sheet tab, shown in Figure 11-11, to access settings specific to the active worksheet. You can specify different worksheet options for each worksheet in a workbook. (You can also display the Sheet tab by clicking the Print Titles button on the Page Layout tab.)

image with no caption

If you do not specify an area to print, Excel prints the entire active area of the selected worksheet(s). If you don’t want to print the entire worksheet, you can specify an area to print by using the Print Area button on the Page Layout tab. First, select the range or ranges you want to print, click Print Area on the Page Layout tab, and then click Set Print Area. To clear this setting, click the Print Area button and click Clear Print Area. You can specify a print area setting for each worksheet, and the settings are saved with the workbook.

The print area settings are stored in the first box on the Sheet tab in the Page Setup dialog box, which you can also use to set or edit the print area. To do so, click the Print Titles button on the Page Layout tab (a quick way to display the Page Setup dialog box). Click in the Print Area box, and then drag to select the cells on the worksheet you want to include. When you do this, the dialog box collapses so you can see more of the worksheet, and Excel inserts the cell range reference of the area you select in the Print Area box, as shown in Figure 11-11. You can select multiple nonadjacent cell ranges by selecting a range, typing a comma, and then selecting the next range. Each range you select prints on a separate page.

image with no caption

On most worksheets, the column and row labels that identify your data appear in only the first couple of columns and top few rows. When Excel breaks up a large report into pages, those important column and row labels might appear only on the first page of the printout. You use the Print Titles feature to force Excel to print the contents of one or more columns, one or more rows, or a combination of columns and rows on every page of a report.

Suppose you want to print the contents of column A and rows 1, 2, and 3 on all the pages of the report shown in Figure 11-11:

  1. Click the Print Titles button on the Page Layout tab to display the Page Setup dialog box, open to the Sheet tab.

  2. Click in the Rows To Repeat At Top text box, and then select the headings for the first three rows. (To select multiple contiguous row headings, drag through them.)

  3. Click in the Columns To Repeat At Left text box, and then select the column A heading (or any cell in column A).

  4. Click OK.

Figure 11-12 shows the result in Page Layout view. Notice that the column containing the product numbers appears on both pages displayed in Page Layout view. If you did not use print titles, the first column on the second page of the printout would display the June totals column instead of the product numbers. You can specify separate print titles for each worksheet in your workbook. Excel remembers the titles for each worksheet.