Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-05-2020, 10:12 PM
macropod's Avatar
macropod macropod is offline Manual duplex printing script Windows 7 64bit Manual duplex printing script Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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
 



Similar Threads
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
Manual duplex printing script Mixed Duplex Printing jaygreg Word 2 01-29-2014 09:54 AM
Manual duplex printing script Duplex printing fireman0174 Word 1 09-26-2011 01:44 AM
Duplex Printing a merge doc AshlandMark Word 0 02-10-2009 12:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft