ActivePrinter 属性

       

返回或设置活动打印机的名称。String 类型,可读写。

示例

本示例显示活动打印机的名称。

MsgBox "The name of the active printer is " & _
    Application.ActivePrinter