经常发生这样的情况:我只想打印一页,但是我移动得太快,整个文档就开始打印了。
有没有办法设置大型 Word 文档来验证我只想打印当前所在的页面?
答案1
您可以用自己的默认值覆盖默认打印对话框。您只需将此宏添加到想要使用不同默认值的文档中。
' Override File -> Print (does not work on Word 2010)
Sub FilePrint()
Call ShowPrintDialogWithDefault
End Sub
' Override Ctrl + P or PrintPreview in the toolbar
Sub PrintPreviewAndPrint()
Call ShowPrintDialogWithDefault
End Sub
' Override the Quick Print button
Sub FilePrintDefault()
Call ShowPrintDialogWithDefault
End Sub
Sub ShowPrintDialogWithDefault()
With Dialogs(wdDialogFilePrint)
.Range = wdPrintCurrentPage ' Set print current page only as the default setting
.Show
End With
End Sub