|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
* 能不能打印不清楚,仅供 楼主 参考:
- Sub PDF_Print()
- Dim doc As Document, y$, p$, i&
- Set doc = ActiveDocument
- With doc
- y = .Name
- If y Like "*.docx" Then y = Left(y, Len(y) - 5) Else y = Left(y, Len(y) - 4)
- p = .Path & ""
- i = .Sections.Count
- End With
- ' ??????
- ActivePrinter = "Adobe PDF"
- For i = 1 To 5
- Application.PrintOut FileName:=p & y & "_" & i & ".PDF", _
- Range:=wdPrintRangeOfPages, _
- Item:=wdPrintDocumentWithMarkup, _
- Copies:=1, _
- Pages:="s" & i, _
- PageType:=wdPrintAllPages, _
- Collate:=True, _
- Background:=True, _
- PrintToFile:=False, _
- PrintZoomColumn:=0, _
- PrintZoomRow:=0, _
- PrintZoomPaperWidth:=0, _
- PrintZoomPaperHeight:=0
- Next i
- MsgBox "??_??_????" & y & vbCr & "???·????" & p & vbCr & "??????? " & i & " ??", 0 + 48, "??????"
- End Sub
复制代码 |
|