Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel print order 1

Status
Not open for further replies.

Maceleven

IS-IT--Management
Aug 30, 2002
15
GB
Is there a "print pages in reverse order" function in Office 97 Excel. Sorting into reverse order does not have the same effect - I just want the pages with the latest on top
 
These days most printers have the feature where u can reverse the print order. that would be under printer properties, printing preferences.

If not, u can try this macro (i have not tested it)

Sub PrintBackToFront()
' credited to Jim_Cone
Dim TotalPages As Integer, S As Integer, N As Integer
Dim AllSheets As Sheets
Set AllSheets = ActiveWindow.SelectedSheets
Application.ScreenUpdating = False
For S = AllSheets.Count To 1 Step -1
AllSheets(S).Activate
TotalPages = ExecuteExcel4Macro("get.document(50)")
For N = TotalPages To 1 Step -1
AllSheets(S).PrintOut from:=N, To:=N
Next N
Next S
Application.ScreenUpdating = True
Set AllSheets = Nothing
End Sub
 
The printer did not have the feature, but your macro worked a treat. Many thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top