PrintOut Method (MailingLabel Object)

Applies To

MailingLabel object.

Description

Prints a label or a page of labels with the same address.

Syntax

expression.PrintOut(Name, Address, ExtractAddress, LaserTray, SingleLabel, Row,
Column)

expression Required. An expression that returns a MailingLabel object.

Name Optional Variant. The mailing label name.

Address Optional Variant. The text for the label address.

ExtractAddress Optional Variant. True to use the text marked by the "EnvelopeAddress" bookmark (a user-defined bookmark) as the label text. If this argument is specified, Address and AutoText are ignored.

LaserTray Optional Variant. The laser printer tray to be used. Can be one of the following WdPaperTray constants:

  • wdPrinterAutomaticSheetFeed
  • wdPrinterDefaultBin
  • wdPrinterEnvelopeFeed
  • wdPrinterFormSource
  • wdPrinterLargeCapacityBin
  • wdPrinterLargeFormatBin
  • wdPrinterLowerBin
  • wdPrinterManualEnvelopeFeed
  • wdPrinterManualFeed
  • wdPrinterMiddleBin
  • wdPrinterOnlyBin
  • wdPrinterPaperCassette
  • wdPrinterSmallFormatBin
  • wdPrinterTractorFeed
  • wdPrinterUpperBin

SingleLabel Optional Variant. True to print a single label, False to print an entire page of the same label.

Row Optional Variant. The label row for a single label. Not valid if SingleLabel is False.

Column Optional Variant. The label column for a single label. Not valid if SingleLabel is False.

See Also

CreateNewDocument method, MailingLabel object.

Example

This example prints a page of Avery 5664 mailing labels, using the specified address.

addr = "Jane Doe" & vbCr & "123 Skye St." & vbCr & "OurTown, WA 98107"
Application.MailingLabel.PrintOut Name:="5664", Address:=addr