NumberAcross Property

Applies To

CustomLabel object.

Description

Returns or sets the number of custom mailing labels across a page. Read/write Long.

Note If this property is changed to a value that isn't valid for the specified mailing label layout, an error occurs.

See Also

CustomLabel object, Height property, HorizontalPitch property, NumberDown property, PageSize property, SideMargin property, TopMargin property, VerticalPitch property, Width property.

Example

This example creates a new custom label named "Dept. Labels" and defines the layout, including the number of labels across the page.

Set myLabel = Application.MailingLabel.CustomLabels.Add(Name:="Dept. Labels", _
    DotMatrix:=False)
With myLabel
    .Height = InchesToPoints(0.5)
    .HorizontalPitch = InchesToPoints(2.06)
    .NumberAcross = 4
    .NumberDown = 20
    .PageSize = wdCustomLabelLetter
    .SideMargin = InchesToPoints(0.28)
    .TopMargin = InchesToPoints(0.5)
    .VerticalPitch = InchesToPoints(2)
    .Width = InchesToPoints(1.75)
End With