» Print the pages in reverse order using VBA in Microsoft Excel
VBA macro tip contributed by Erlandsen Data Consulting offering Microsoft Excel Application development, template customization, support and training solutions
CATEGORY - Printing in VBA
VERSION - All Microsoft Excel Versions
The macro below can be used to print the pages of a worksheet in reverse order.
Sub PrintInReverseOrder()
Dim TotalPages As Long, p As Long
TotalPages = (ActiveSheet.HPageBreaks.Count + 1) * _
(ActiveSheet.VPageBreaks.Count + 1)
For p = TotalPages To 1 Step -1
'ActiveSheet.PrintOut p, p
Debug.Print "Printing page " & p & " of " & TotalPages
Next p
End Sub
Book Store:
Recommended Books:
- Seven Habits Of Highly Effective People
- Real Estate Finance and Investments (Real Estate Finance and Investments, 11th Ed)
- Business Analysis and Valuation: Using Financial Statements, Text and Cases
- Rich Dad, Poor Dad: What the Rich Teach Their Kids About Money--That the Poor and Middle Class Do Not!
- A Mathematician Plays the Stock Market
No comments have been submitted.

