Application.PrintCommunication 属性 (Excel)
指定是否打开与打印机的通信。 读/写 Boolean。
语法
表达式。PrintCommunication
表达 一个返回 Application 对象的变量。
返回值
如果打开与打印机的通信,则为 True;否则为 False。
备注
将 PrintCommunication 属性设置为 False 将加速执行设置 PageSetup 属性的代码。
在设置属性以提交所有缓存的 PageSetup 命令后,将 PrintCommunication 属性设置为 True。
示例
下面的示例在设置 PageSetup 属性时挂起与打印机的通信。
Application.PrintCommunication = False
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
Application.PrintCommunication = True
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。