ActivePrinter Property

Microsoft Excel Visual Basic

ActivePrinter Property

       

Returns or sets the name of the active printer. Read/write String.

Example

This example displays the name of the active printer.

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