How to print sheet name or a list of sheet names in Excel?
By default, it is hard for you to figure out which printout came from which worksheet as the sheet name will not be printed by default in Excel. In this article, we will show you how to print worksheet with the worksheet name in it, and how to print a list of worksheet names.
Print sheet name with changing the print page setup
Print sheet name by inserting the sheet name in a cell with Kutools for Excel
Print a list of sheet names with VBA code
Print a list of sheet names with Kutools for Excel
Print sheet name with changing the print page setup
You can change the print page setup by adding the sheet name into the Header/Footer of the worksheet, and then print it.
1. In Excel 2010 and 2013, click File > Print > Print Setup. See screenshot:
In Excel 2007, please click the Office button > Print > Print Preview. And then click Page Setup under the Print Preview tab.
2. In the Page Setup dialog box, go to the Header/Footer tab. If you want to insert the sheet name to header, please click the Custom Header button, but if you want to insert the sheet name to footer, click the Custom Footer button. Here I click the Custom Header button. See screenshot:
3. In the Header dialog box, click the Left section box, then click the Insert Sheet Name button, and finally click the OK button. See screenshot:
Note: You can also insert the sheet name to the Center section or Right section of header as you need.
4. When it returns to the Page Setup dialog box, click the OK button. Then it will print out the worksheet name when printing the worksheet.
Print sheet name by inserting the sheet name in a cell with Kutools for Excel
The Insert Workbook Information utility of Kutools for Ecel can help you quickly insert active worksheet name into a cell, and then you can manually print the sheet name as you need. Please do as follows.
Before applying Kutools for Excel, please download and install it firstly.
1. Click Kutools Plus > Insert Workbook Information.
2. In the Insert Workbook Information dialog box, check the Worksheet name option in Information section, select the cell you want to insert the sheet name in the Range box, and then click the OK button.
3. Print your sheet.
Note: you can insert the sheet name at worksheet header or footer by checking the Header or Footer option.
If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.
Print a list of sheet names with VBA code
If you need to print a list of all sheet names of the whole workbook, you need to list all worksheet names in a list with following VBA code first. In this section, we guide you through how to use VBA to list all worksheet names in a list.
1. Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
2. In the Microsoft Visual Basic for Applications window, click Insert > Module, then copy and paste the below VBA code into the editor.
VBA: List all worksheet names
Sub GetSheets()
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Out put to (single cell)", xTitleId, WorkRng.Address, Type: = 8)
Set WorkRng = WorkRng.Range("A1")
xNum = Application.Sheets.Count
For i = 1 To xNum
WorkRng.Value = Application.Sheets(i).Name
Set WorkRng = WorkRng.Offset(1, 0)
Next
End Sub
4. Press F5 key to run the code. In a popping up KutoolsforExcel dialog box, select a cell for locating the sheet name list, and then click the OK button.
5. Then all worksheet names are populated, and then you can print it now.
Print a list of sheet names with Kutools for Excel
If you want to print a list of sheet names in current workbook, the Create List of Sheet Names utility of Kutools for Excel can do you a favor.
Before applying Kutools for Excel, please download and install it firstly.
1. Click Kutools Plus > Worksheet > Create List of Sheet Names.
2. In the Create List of Sheet Names dialog box, specify the settings as below screenshot shown, and then click the OK button.
Then a new worksheet will be created to list all worksheet names in current workbook, and then you can print it.
If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.
Related articles:
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
