Share via


MailingLabel.DefaultLaserTray Property

Word Developer Reference

Returns or sets the default paper tray that contains sheets of mailing labels. Read/write WdPaperTray.

Syntax

expression.DefaultLaserTray

expression   Required. A variable that represents a MailingLabel object.

Example

This example checks to determine whether the mailing label printer is set for feed labels manually, and then it displays a message on the status bar.

Visual Basic for Applications
  If Application.MailingLabel.DefaultLaserTray = _
        wdPrinterManualEnvelopeFeed Then
    StatusBar = "Printer set for feeding labels manually"
Else
    StatusBar = "Check printer paper tray setting"
End If

This example sets the mailing-label paper tray to the upper bin.

Visual Basic for Applications
  Application.MailingLabel.DefaultLaserTray = wdPrinterUpperBin

See Also