WdCustomLabelPageSize can be one of these WdCustomLabelPageSize constants. |
wdCustomLabelA4 |
wdCustomLabelA4LS |
wdCustomLabelA5 |
wdCustomLabelA5LS |
wdCustomLabelB4JIS |
wdCustomLabelB5 |
wdCustomLabelFanfold |
wdCustomLabelHigaki |
wdCustomLabelHigakiLS |
wdCustomLabelLetter |
wdCustomLabelLetterLS |
wdCustomLabelMini |
wdCustomLabelVertHalfSheet |
wdCustomLabelVertHalfSheetLS |
expression.PageSize
expression Required. An expression that returns a CustomLabel object.
Remarks
Some of the constants listed above may not be available to you, depending on the language support (U.S. English, for example) that you’ve 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