View Single Post
 
Old 05-05-2020, 10:12 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
Code:
Sub DuplexPrint()
Application.ScreenUpdating = False
Dim s As Long, e As Long, p As Long, StrPrn As String

With ActiveDocument
  s = InputBox("Start page:", "Print", "1")
  e = InputBox("End page:", "Print", .ComputeStatistics(wdStatisticPages))
  For p = s + (s Mod 2 - 1) To e Step 2
    StrPrn = StrPrn & p & " "
  Next
  StrPrn = Replace(Trim(StrPrn), " ", ",")
  If StrPrn <> "" Then
    Application.PrintOut Background:=True, FileName:="", Copies:=1, Range:=wdPrintRangeOfPages, Pages:=StrPrn
  End If
  MsgBox ("Please remove and flip over the paper stack..."): StrPrn = ""
  For p = s + s Mod 2 To e Step 2
    StrPrn = p & " " & StrPrn
  Next
  StrPrn = Replace(Trim(StrPrn), " ", ",")
  If StrPrn <> "" Then
    Application.PrintOut Background:=True, FileName:="", Copies:=1, Range:=wdPrintRangeOfPages, Pages:=StrPrn
  End If
End With

Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote