Putting Spreadsheet Names in Headers or Footers

Written by Allen Wyatt (last updated February 18, 2021)
This tip applies to Excel 97, 2000, 2002, and 2003


When you print your spreadsheet, it is often a good idea to include the spreadsheet name in the header or footer. This allows you, at a later date, to recall the name of the file in which the spreadsheet is stored. In fact, some of the headers and footers predefined in Excel include the spreadsheet file name. To include spreadsheet file names in your custom header or footer, follow these steps:

  1. Choose Page Setup from the File menu. This displays the Page Setup dialog box.
  2. Make sure the Header/Footer tab is selected. (See Figure 1.)
  3. Figure 1. The Header/Footer tab of the Page Setup dialog box.

  4. Click on either Custom Header or Custom Footer, depending on where you want the spreadsheet file name to appear. This displays either the Header or Footer dialog box. (See Figure 2.)
  5. Figure 2. The Header or Footer dialog box.

  6. Position the insertion point in the Left, Center, or Right box, depending on where in the header or footer you want the spreadsheet file name placed.
  7. Click on the file name tool (it looks like a piece of paper with the Excel logo on it). This places the characters &[File] at the insertion point. This is where the spreadsheet file name will be located.
  8. Click on OK to close the Header or Footer dialog box.
  9. Click on OK to close the Page Setup dialog box.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2638) applies to Microsoft Excel 97, 2000, 2002, and 2003.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Finding the Smallest Even Value

When processing data in a worksheet, you may have a need to know what the smallest (lowest) even value in a range is. You ...

Discover More

Saving Information in a Non-Document Text File

Need to store some information in a plain text file? It's easy to do when you use a macro.

Discover More

Enhancing Word Documents with Dynamic Fields (Table of Contents)

Add a field to your document and you add dynamic content. Word provides a wide variety of fields that can be used in a ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (menu)

Last Saved Date in a Footer

When printing out a worksheet, you may want Excel to include, in the footer, the date the data was last saved. There is ...

Discover More

Full Path Names in Headers or Footers

Using a macro to add the full path name into a header or footer in an Excel worksheet.

Discover More

Multiple Line Headers and Footers

When working with headers and footers in a macro, you might find this tip helpful. It describes how you can create ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is nine minus 5?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.