Skip to content

Latest commit

 

History

History
58 lines (38 loc) · 1.35 KB

Word.CustomLabel.SideMargin.md

File metadata and controls

58 lines (38 loc) · 1.35 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
CustomLabel.SideMargin property (Word)
vbawd10.chm152371204
vbawd10.chm152371204
Word.CustomLabel.SideMargin
bd511d0e-36fc-0fd1-57a2-47d9f0a911dc
06/08/2017
medium

CustomLabel.SideMargin property (Word)

Returns or sets the side margin widths (in points) for the specified custom mailing label. Read/write Single.

Syntax

expression. SideMargin

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 custom label named "VisitorPass" and defines its layout. The left and right margins for each label are 0.75 inch.

Set myLabel = Application.MailingLabel.CustomLabels _ 
 .Add(Name:="VisitorPass", DotMatrix:=False) 
With myLabel 
 .Height = InchesToPoints(2.17) 
 .HorizontalPitch = InchesToPoints(3.5) 
 .NumberAcross = 2 
 .NumberDown = 4 
 .PageSize = wdCustomLabelLetter 
 .SideMargin = InchesToPoints(0.75) 
 .TopMargin = InchesToPoints(0.17) 
 .VerticalPitch = InchesToPoints(2.17) 
 .Width = InchesToPoints(3.5) 
End With

See also

CustomLabel Object

[!includeSupport and feedback]