CustomLabel.PageSize property (Word)

Returns or sets the page size for the specified custom mailing label. Read/write WdCustomLabelPageSize.


expression. PageSize

expression Required. A variable that represents a 'CustomLabel' object.


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.


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

CustomLabel Object

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.