作者:乔山办公网日期:
返回目录:excel表格制作
自己录制个宏就知道的事。。。。
Application.ActivePrinter 属性来
返回或设置活动打印机的名称。String 类型源,可读写。
语法
表达式.ActivePrinter
表达式 一个代表 Application 对象的变量知。
示例
本示例显示活动打道印机的名称。
Visual Basic for Applications
MsgBox "The name of the active printer is " & _
Application.ActivePrinter
需要设置打印代码。
在设置打印机代码下面添加一句。
ActiveSheets.PrintOut Copies:=1