Share via


Application.FilePrintSetup Method

Project Developer Reference

Specifies the active printer.

Syntax

expression.FilePrintSetup(Printer)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Printer Optional String The full name or port name of the active printer.

Return Value
Boolean

Example
The following example sets the active printer to the printer on the LPT1 port.

Visual Basic for Applications
  Sub SetActivePrinterToLPT1()
    FilePrintSetup "LPT1:"
End Sub

See Also