CustomLabel.PageSize property (Word)
Returns or sets the page size for the specified custom mailing label. Read/write WdCustomLabelPageSize.
Syntax
expression. PageSize
expression Required. A variable that represents a 'CustomLabel' object.
Remarks
Some of the WdCustomLabelPageSize constants may not be available to you, depending on the language support (U.S. English, for example) that you have selected or installed.
Example
This example creates a new custom label named "Home Address" and then sets various properties for the label, including the page size.
Set myLabel = Application.MailingLabel _
.CustomLabels.Add(Name:="Home Address", 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(0.5)
.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