Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Changing Page Number Format.
When you print a worksheet, you can have Excel include a variety of items in the header or footer of the printout. One of the things you can include is the page number of the page being printed. This page number is pretty mundane—it is the Arabic value of the page being printed, as in 1, 2, 3, etc.
Some people may long for a way to print page letters (A, B, C) instead of page numbers (1, 2, 3). There is no intrinsic way to do this in Excel. You can, however, develop a macro that will figure out the letter that should be associated with a page, and then use that letter in the footer. The following macro does just that:
Sub LetterPageNums()
Dim sArr(27 * 26) As String
Dim iPages As Integer
Dim J As Integer, K As Integer
' Fill page letter array
' "A", "B", "C", ...,"AA", "AB", etc.
For J = 0 To 26
For K = 1 To 26
If J > 0 Then
sArr((J * 26) + K) = Chr(J + 64) & Chr(K + 64)
Else
sArr(K) = Chr(K + 64)
End If
Next K
Next J
' Get count of pages in active sheet
iPages = ExecuteExcel4Macro("Get.Document(50)")
' Print worksheet, page by page
With ActiveSheet
For J = 1 To iPages
' Set page letter
.PageSetup.CenterFooter = sArr(J)
' Print page(J)
.PrintOut From:=J, To:=J
Next J
End With
End Sub
First, the macro figures out the letter equivalent of pages numbers and puts them in an array. In this case, up to 702 page letters are calculated, which should be more than enough for any print job. The letters are A through Z, then AA through AZ, BA through BZ, and all the way up to ZA through ZZ.
Then, iPages is set to the number of pages in the worksheet. Finally, each page is individually printed, with the page letter being placed into the center footer of the worksheet. If you want the page letter in some different place, use .LeftFooter or .RightFooter instead of the .CenterFooter property. (You can also use .LeftHeader, .CenterHeader, and .RightHeader, if desired.)
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12930) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Changing Page Number Format.
Dive Deep into Macros! Make Excel do things you thought were impossible, discover techniques you won't find anywhere else, and create powerful automated reports. Bill Jelen and Tracy Syrstad help you instantly visualize information to make it actionable. You’ll find step-by-step instructions, real-world case studies, and 50 workbooks packed with examples and solutions. Check out Microsoft Excel 2019 VBA and Macros today!
Excel allows you to create headers and footers. In this tip you discover that the headers and footers in Excel may not be ...
Discover MoreDo you want to change the headers and footers that appear on different pages of your printout? Here's how you can get ...
Discover MoreWhen you have a worksheet that includes a long list of names, you may want the first and last names on each page to ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2026-09-13 14:12:23
J. Woolley
The LetterPageNums2 macro in my previous comment below will accommodate 16,384 pages with Excel 2007 or later.
Like the Tip's macro:
1. It prints 1 page at a time to the default printer, so you probably don't want to make "Print to PDF" the default.
2. Under Header/Footer Page Setup, you should confirm "Different odd and even pages" and "Different first page" are disabled.
2026-09-12 16:06:05
J. Woolley
Here's an alternate version of the Tip's macro using a modern method for the number of pages and column labels instead of awkward Chr() formulas for lettered page footers:
Sub LetterPageNums2()
Dim nPages As Long, n As Long, sPage As String
'Get count of pages in active sheet
ActiveWindow.View = xlPageBreakPreview
nPages = ActiveSheet.PageSetup.Pages.Count
ActiveWindow.View = xlNormalView
If nPages > ActiveSheet.Columns.Count Then
MsgBox "Too many pages!", vbCritical
Exit Sub
End If
'Print with column label page numbers A, B,... AA, AB,...
With ActiveSheet
For n = 1 To nPages
sPage = Replace(Cells(1, n).Address(False, False), "1", "")
.PageSetup.CenterFooter = sPage
.PrintOut From:=n, To:=n
Next n
End With
End Sub
2026-08-22 13:12:24
Donald Knowles
Your new advertising take over of a significant portion of my screen when I click on a topic is really annoying.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2026 Sharon Parq Associates, Inc.
Comments