Print pages in reverse order

ThomasOES

Board Regular
Joined
Aug 29, 2017
Messages
174
Hello. I would like to print my report pages in reverse order so the first page of report is now at top of stack in print tray. Anything I can add to my page setup to do it?
VBA Code:
Sub RePrint2()

'PRINT PREVIEW FOR CURRENT REPORT

With Sheets("Report").PageSetup
    .PrintArea = RePrOut
    .LeftHeader = "&""Arial,bold""&10" _
        & Range("instrument") & "    " & Range("Program")
    .CenterHeader = "&""Arial,bold""&16" _
        & Range("ReportName") & "  Lot Qualification"
    .RightHeader = "&""Arial,Bold""&12" _
        & Range("Operator") & "    " _
        & "&""Arial,Bold""&10&D"
    .RightFooter = "&P" & "/" & "&N"
    .LeftMargin = Application.InchesToPoints(0.75)
    .RightMargin = Application.InchesToPoints(0.5)
    .TopMargin = Application.InchesToPoints(1#)
    .BottomMargin = Application.InchesToPoints(0.5)
    .HeaderMargin = Application.InchesToPoints(0.3)
    .CenterHorizontally = False
    .Orientation = xlPortrait
    .Draft = False
    .PaperSize = xlPaperLetter
    .BlackAndWhite = False
    .Zoom = False
    .FitToPagesWide = 1
    .FitToPagesTall = 1
End With
Range("RePrOut").PrintPreview
Call Show_LotQual_Ctrl
End Sub

Thanks for any help
Tom
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Check if this helps you.

VBA Code:
Sub RePrint2()

  'PRINT PREVIEW FOR CURRENT REPORT
  Dim IPages As Long, i As Long
      With Sheets("Report").PageSetup
      .PrintArea = RePrOut
      .LeftHeader = "&""Arial,bold""&10" _
          & Range("instrument") & "    " & Range("Program")
      .CenterHeader = "&""Arial,bold""&16" _
          & Range("ReportName") & "  Lot Qualification"
      .RightHeader = "&""Arial,Bold""&12" _
          & Range("Operator") & "    " _
          & "&""Arial,Bold""&10&D"
      .RightFooter = "&P" & "/" & "&N"
      .LeftMargin = Application.InchesToPoints(0.75)
      .RightMargin = Application.InchesToPoints(0.5)
      .TopMargin = Application.InchesToPoints(1#)
      .BottomMargin = Application.InchesToPoints(0.5)
      .HeaderMargin = Application.InchesToPoints(0.3)
      .CenterHorizontally = False
      .Orientation = xlPortrait
      .Draft = False
      .PaperSize = xlPaperLetter
      .BlackAndWhite = False
      .Zoom = False
      .FitToPagesWide = 1
      .FitToPagesTall = 1
    End With
 
  IPages = ExecuteExcel4Macro("Get.Document(50)")
  For i = IPages To 1 Step -1
    Sheets("Report").PrintOut From:=i, To:=i
  Next
 
  Range("RePrOut").PrintPreview
  Call Show_LotQual_Ctrl
End Sub
 
Upvote 0
Check if this helps you.

VBA Code:
Sub RePrint2()

  'PRINT PREVIEW FOR CURRENT REPORT
  Dim IPages As Long, i As Long
      With Sheets("Report").PageSetup
      .PrintArea = RePrOut
      .LeftHeader = "&""Arial,bold""&10" _
          & Range("instrument") & "    " & Range("Program")
      .CenterHeader = "&""Arial,bold""&16" _
          & Range("ReportName") & "  Lot Qualification"
      .RightHeader = "&""Arial,Bold""&12" _
          & Range("Operator") & "    " _
          & "&""Arial,Bold""&10&D"
      .RightFooter = "&P" & "/" & "&N"
      .LeftMargin = Application.InchesToPoints(0.75)
      .RightMargin = Application.InchesToPoints(0.5)
      .TopMargin = Application.InchesToPoints(1#)
      .BottomMargin = Application.InchesToPoints(0.5)
      .HeaderMargin = Application.InchesToPoints(0.3)
      .CenterHorizontally = False
      .Orientation = xlPortrait
      .Draft = False
      .PaperSize = xlPaperLetter
      .BlackAndWhite = False
      .Zoom = False
      .FitToPagesWide = 1
      .FitToPagesTall = 1
    End With

  IPages = ExecuteExcel4Macro("Get.Document(50)")
  For i = IPages To 1 Step -1
    Sheets("Report").PrintOut From:=i, To:=i
  Next

  Range("RePrOut").PrintPreview
  Call Show_LotQual_Ctrl
End Sub
Dante,
The print area RePrOut is several pages. When I try your code, all the pages are printed to one sheet and it prints automatically. No preview. Then there is a print preview, and it prints correctly, but not in reverse order.
Tom
 
Upvote 0
Print preview cannot be viewed in reverse order.
 
Upvote 0

Forum statistics

Threads
1,214,556
Messages
6,120,190
Members
448,949
Latest member
keycalinc

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top