I am trying to print a page range in reverse order. I found a sample code but can not fit in my current worksheet.
Sub ReversePrint()
Dim xPages As Long
xPages = ExecuteExcel4Macro("GET.DOCUMENT(50)")
For xIndex = xPages To 1 Step -1
Application.ActiveSheet.PrintOut from:=xIndex, To:=xIndex
Next
End Sub
Suppose I want to print page 14 to 21 but in reverse order. can anyone provide me a working code or adjust the above line.
Sub ReversePrint()
Dim xPages As Long
xPages = ExecuteExcel4Macro("GET.DOCUMENT(50)")
For xIndex = xPages To 1 Step -1
Application.ActiveSheet.PrintOut from:=xIndex, To:=xIndex
Next
End Sub
Suppose I want to print page 14 to 21 but in reverse order. can anyone provide me a working code or adjust the above line.