The following information describes different methods that you can use inMicrosoft Excel to set a print title and a print area on your worksheet.
If you print the same range repeatedly, set your print area before you print. When you print the selected sheet, only the specified print area will be printed.You can also specify rows or columns that you want to repeat on every page when you set your print area.
Print Area Menu Item
In Microsoft Excel versions 7.0 and 97, there is a Print Area
menu itemon the File
menu. To set the print area on your worksheet using the PrintArea
- Select the range of cells that you want set as your print area.
- On the File menu, point to Print Area and then click Set Print Area.
: You can clear an existing print area by repeating step 2, exceptclick Clear Print Area
You can use the Sheet
tab of the Page Setup
dialog box to set either aprint area or a print title on your worksheet. To display the Page Setup
dialog box, click Page Setup
on the File
: Although you can access the Page Setup
dialog box by clicking theSetup
button in print preview, you cannot enter a print area or print titleusing this method.
Use the following steps to set the print area or print title:
- In the Page Setup dialog box, click the Sheet tab.
- In the Print Area box, enter the reference of the cells you want to use as your print area, such as $A$1:$D$6.
- If you want to print titles at the top of every page, under Print Titles, in the Rows to repeat at top box, enter the reference to the row(s) that you want to set as a title, such as $5:$5.
- If you want to print titles at the left of every page, under Print Titles, in the Columns to repeat at left box, enter the reference to the column(s) that you want to set as a title, such as $D:$D.
- Click OK.
: You can click in the Print area
, Rows to repeat at top
, orColumns to repeat at left
boxes and select cells in the worksheet to setthe print area or row/column titles. You can also type defined names inthese boxes.
Set Print Area Button
You can also select the range that you want to print and click the Set Print Area
By default, the Set Print Area
toolbar button is not on the Standard
toolbar. However, you can add the Set Print Area
button to any existingtoolbar, or create a custom toolbar that contains this button. This buttonallows you to set the selected cells on your worksheet as the print area.
To add the Set Print Area
toolbar button to an existing toolbar, use the appropriate method for your version of Excel.
Microsoft Excel 97
- On the View menu, point to Toolbars and then click Customize.
- In the Customize dialog box, click the Commands tab.
- On the Commands tab, click File in the list of Categories.
- In the list of Commands, scroll down until you see Set Print Area.
- Drag this command onto any currently visible toolbar.
- Click Close.
Microsoft Excel versions 5.0 and 7.0
- On the View menu, click Toolbars.
- Click Customize.
- In the Categories list, select File.
The Set Print Area button is the fifth button in the first row of the toolbar buttons displayed in the Buttons section of the Customize dialog box.
- Drag this button to any visible toolbar, or to an open area on your worksheet to create a custom toolbar that contains this button.
- Click Close.
To set a print area using this button, select the cells on the worksheetthat you want to set as the print area, and then click the Set Print Area
To clear a print area using this button, select the entire worksheet byclicking the select-all button (at the intersection of the row and columnheadings) or press CTRL+SHIFT+SPACEBAR and then click the Set Print Area
Set Print Titles Dialog Box
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. You can use the following Visual Basic procedure to display the Set PrintTitles
Sub Set_Print_Titles() Application.Dialogs(xlDialogSetPrintTitles).Show End Sub
When you run this macro, the Set Print Titles
dialog box appears. You canthen enter or select ranges for either Titles for columns
or Titles for rows
, or both.NOTE
: You can assign this procedure to a toolbar button for quickaccess.
Print Dialog Box Option to Print Selection
You can also print a selection of cells on a worksheet without setting a specific print area. If you do not need row or column titles, or if you will be printing the worksheet range only once, use the following procedure:
- Select the cells on the worksheet that you want to print.
- On the File menu, click Print.
- Under Print What, select the Selection option. Click OK.