Class CustomLabel (Word VBA)

The class CustomLabel represents a custom mailing label. The CustomLabel object is a member of the CustomLabels collection. The CustomLabels collection contains all the custom mailing labels listed in the Label Options dialog box.


Dim cll as CustomLabel
Set cll = Application.MailingLabel.CustomLabels(Index:=1)

For Each

Here is an example of processing the CustomLabel items in a collection.


Dim cll As CustomLabel
For Each cll In Application.MailingLabel.CustomLabels
	
Next cll

Methods

Delete - Deletes the specified custom label.

Properties

DotMatrix true if the printer type for the specified custom label is dot matrix. False if the printer type is either laser or ink jet.

Height returns or sets the height of a specified custom mailing label, in points.

HorizontalPitch returns or sets the horizontal distance (in points) between the left edge of one custom mailing label and the left edge of the next mailing label.

Index returns a Long that represents the position of an item in a collection.

Name returns or sets the name of the specified object.

NumberAcross returns or sets the number of custom mailing labels across a page.

NumberDown returns or sets the number of custom mailing labels down the length of a page.

PageSize returns or sets the page size for the specified custom mailing label.

SideMargin returns or sets the side margin widths (in points) for the specified custom mailing label.

TopMargin returns or sets the distance (in points) between the top edge of the page and the top boundary of the body text.

Valid true if the various properties (for example, Height, Width, and NumberDown) for the specified custom label work together to produce a valid mailing label.

VerticalPitch returns or sets the vertical distance between the top of one mailing label and the top of the next mailing label.

Width returns or sets the width of a custom mailing label, in points.