Using a Different Footer on Secondary Pages

Written by Allen Wyatt (last updated June 21, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003


When creating a worksheet that will eventually be printed, you may want to use a different footer on the first page of your document than you do on the subsequent pages. There is no way to do this directly in Excel. There are a couple of workarounds you could use, however.

First of all, try using the Report Manager add-in for Excel. This add-in allows you to define different views and select the order in which those views are printed. Each view can also have its unique headers and footers, which means you could set up a view of the first page—with the footer desired—and a view of the subsequent pages with their own headers and footers. You would then print the report using the Report Manager, resulting in the desired output.

You should note that the Report Manager add-in was last distributed with Excel 2002. If you are using Excel 2003, you can still use the Report Manager. This Knowledge Base article explains how you can use it:

http://support.microsoft.com/kb/873209

Another workaround is to use a macro to do your printing. The following macro will set the footers for a worksheet depending on what is being printed. Actually, it sets the footers for the first page, and then prints that page. Then it sets the footers for the other pages, and prints them.

Sub PrintSheet()
    Dim sP1Left As String
    Dim sP1Center As String
    Dim sP1Right As String
    Dim sP2Left As String
    Dim sP2Center As String
    Dim sP2Right As String

    ' Define first-page footers
    sP1Left = "First page left"
    sP1Center = "First page center"
    sP1Right = "First page right"

    ' Define second-page footers
    sP2Left = "Second page left"
    sP2Center = "Second page center"
    sP2Right = "Second page right"

    ' Set up and print first page
    With ActiveSheet.PageSetup
        .LeftFooter = sP1Left
        .CenterFooter = sP1Center
        .RightFooter = sP1Right
    End With
    ActiveSheet.PrintOut 1, 1

    ' Set up and print other pages
    With ActiveSheet.PageSetup
        .LeftFooter = sP2Left
        .CenterFooter = sP2Center
        .RightFooter = sP2Right
    End With
    ActiveSheet.PrintOut 2
End Sub

To use the macro, all you need to do is change the footer definitions. Change the variable values in the "Define first-page footers" area and the "Define second-page footers" area in order to get just the output you want.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the ExcelTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2187) 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

Read-Only Documents without a Password

Want to protect your document so it cannot be changed? There are a couple of ways you can do it, and not all of them ...

Discover More

Using VLOOKUP to Access Information to the Left

One of the most useful function in Excel is VLOOKUP. One thing it won't do, however, is allow you to lookup information ...

Discover More

Keyboard Control of the Find and Replace Dialog Box

Hate to take your hands off the keyboard? This tip explains how you can use the keyboard to work with the Find and ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (menu)

Positioning Headers and Footers

If your workbook is destined for the printed page, you need to be concerned with the layout of that page. Excel allows ...

Discover More

Creating a Header

When preparing your worksheet for printing, you may want to add a header that appears at the top of each page that you ...

Discover More

Deleting a Footer

Excel allows you to add footers to the worksheets you create. If you decide you don't need a footer any more, here's how ...

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 2 + 2?

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.