How to print even/odd pages only in Excel?
In Excel work, you may usually need to print pages, and in default, you can print selection, print the whole workbook, or print specified pages, such as from page 1 to 3, but do you know how to print only even pages or odd pages of the active workbook? In this article, I introduce the tricks to help you only print even or odd pages only in Excel workbook.
Print even/odd pages only with VBA
Print specific pages with Kutools for Excel
Print first page of each worksheet with Kutools for Excel
Print even/odd pages only with VBA
In Excel, if you want to print only even or odd pages, you can apply a VBA to get it done.
1. Press Alt + F11 keys to open Microsoft Visual Basic for Applications window.
2. And click Insert > Module, then paste below VBA code to the new Module window.
VBA: Print even or odd pages only
Sub PrintOddEven()
'UpdatebyKutoolsforExcel20160105
Dim xPages As Long
Dim xFPage As Variant
Dim Page As Integer
xPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
xFPage = Application.InputBox("Enter 1 for odd pages, enter 2 for even pages", "Kutools for Excel", , , , , , 1)
If TypeName(xFPage) = "Boolean" Then Exit Sub
If xFPage > 0 Then
xFPage = Abs((xFPage Mod 2) - 2)
For Page = xFPage To xPages Step 2
ActiveSheet.PrintOut Page, Page
Next
End If
End Sub
3. Press F5 to execute the VBA, and enter 1 to print all odd pages, or enter 2 to print all even pages in the popping Kutools for Excel dialog. See screenshot:
4. Click OK, and the only the odd pages or even pages are printing.
Print specific pages with Kutools for Excel
If you are not familiar with VBA code, you can apply Kutools for Excel's Print Specific Pages utility, it can quickly print the specific pages only as you need, such as print odd/even pages only, print 5-12 pages only.
After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)
Click Kutools Plus > Printing > Print Specific Pages, and in the popping dialog, check Odd pages or Even Pages option as you need. See screenshot:
Click Ok. and then only the odd pages or even pages have been printing.
Print Odd/Even/Specific Pages Only
Print first page of each worksheet with Kutools for Excel
If there are multiple sheets in your open workbook, and now you want to print all the first page of each worksheet only, in this case, you can apply the Print First Page of Each Worksheet utility of Kutools for Excel to quickly get it done.
After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)
Enable the workbook you want to print first page of every sheet, and click Kutools Plus > Printing > Print First Page of Each Worksheet. See screenshot:
Then all the first page of each sheet are printing.
Relative 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!