|
本人word2010测试通过。由于2010自带的手动双面打印,需要手动纸张排序,因此做了这个宏。
代码大部分都是录制生成。欢迎测试。
- Dim ok
- Options.PrintReverse = True
- Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
- wdPrintDocumentWithMarkup, Copies:=1, Pages:="", PageType:= _
- wdPrintEvenPagesOnly, Collate:=True, Background:=True, PrintToFile:=False _
- , PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
- PrintZoomPaperHeight:=0
- Savetime = Timer '记下开始的时间
- While Timer < Savetime + 5 '循环等待
- DoEvents '转让控制权,以便让操作系统处理其它的事件
- Wend
- ok = MsgBox("打印完正面后,文字朝下字头朝前放入纸张,点确定继续", vbOKCancel, "双面打印")
- If ok = 1 Then
- Options.PrintReverse = False
- Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
- wdPrintDocumentWithMarkup, Copies:=1, Pages:="", PageType:= _
- wdPrintOddPagesOnly, Collate:=True, Background:=True, PrintToFile:=False, _
- PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
- PrintZoomPaperHeight:=0
- Else
- Options.PrintReverse = False
- End
- End If
-
-
- End Sub
复制代码
|
|