ActivePrinter 属性

       

返回当前打印机的名称。只读。String 类型。

示例

本示例显示当前打印机的名称。

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