![]() |
#2
|
||||
|
||||
![]()
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] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Duplex printing in Publisher | Ellymoo | Publisher | 0 | 02-19-2019 04:13 AM |
Stop duplex printing | NuDawn | Word | 0 | 12-28-2016 09:06 AM |
![]() |
jaygreg | Word | 2 | 01-29-2014 09:54 AM |
![]() |
fireman0174 | Word | 1 | 09-26-2011 01:44 AM |
Duplex Printing a merge doc | AshlandMark | Word | 0 | 02-10-2009 12:29 PM |