CustomLabel.NumberAcross property (Word)
Returns or sets the number of custom mailing labels across a page. Read/write Long.
Syntax
expression. NumberAcross
expression An expression that returns a 'CustomLabel' object.
Remarks
If this property is changed to a value that isn't valid for the specified mailing label layout, an error occurs.
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 = 4
.PageSize = wdCustomLabelLetter
.SideMargin = InchesToPoints(0.28)
.TopMargin = InchesToPoints(0.5)
.VerticalPitch = InchesToPoints(2)
.Width = InchesToPoints(1.75)
End With
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for