title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
MailingLabel object (Word) |
vbawd10.chm2327 |
|
|
9dd073b7-5d53-0f1e-f19a-9abf6427b3f2 |
06/08/2017 |
medium |
Represents a mailing label.
Use the MailingLabel property to return the MailingLabel object. The following example sets default mailing label options.
With Application.MailingLabel
.DefaultLaserTray = wdPrinterLowerBin
.DefaultPrintBarCode = True
End With
Use the PrintOut method to print a mailing label listed in the Product Number box in the Label Options dialog box. The following example prints a page of Avery 5162 standard address labels using the specified address.
addr = "Katie Jordan" & vbCr & "123 Skye St." _
& vbCr & "OurTown, WA 98107"
Application.MailingLabel.PrintOut Name:="5162", Address:=addr
Use the CustomLabels property to format or print a custom mailing label. The following example sets the number of labels across and down for the custom label named "MyLabel."
With Application.MailingLabel.CustomLabels("MyLabel")
.NumberAcross = 2
.NumberDown = 5
End With
[!includeSupport and feedback]