[英]print 2 pages per sheet with VBA
i am trying definitely to print 2 pages per sheet (the sheets are pre-selected and are active) with VBA but this option seems not be possible我正在尝试使用 VBA 每张纸打印 2 页(这些纸是预先选择的并且是活动的),但这个选项似乎是不可能的
I've tried the following:我尝试了以下方法:
With ActiveSheet.PageSetup
.FitToPagesWide = 1
.FitToPagesTall = 2
.PrintOut copies:=1
end with
however my printer does not print correctly.但是我的打印机无法正确打印。 Any suggestion?
有什么建议吗?
Sub PrintAll()
Dim sh As Worksheet
Dim wb As Workbook
Set wb = ThisWorkbook
For Each sh In wb.Worksheetssh.PrintOut
sh.FitToPagesWide = 1 sh.FitToPagesWide = 1
sh.FitToPagesTall = 2 sh.FitToPagesTall = 2
sh.PrintOut copies:=1 sh.PrintOut 份数:=1
Next sh下一个
End Sub结束子
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.