Label Object [Publisher 2003 VBA Language Reference]
Multiple objects Label |
Represents a single unique label design available on the system.
Using the Label object
Use the Label Property property to return the Label object.
Each label design available on the system resides in the AvailableLabels collection, which is accessed by using the AvailableLabels property on the PageSetup object.
The following properties of the Label object are read/write when the Label object is returned using .PageSetup.Label. These properties are read-only if the Label object is returned using any other method.
The following example uses the Label property to return the fifth label available on the system, and then some of the label's properties are set.
With ActiveDocument.PageSetup
.Label = .AvailableLabels(5) ' Label 5 is Avery 5164
Set theLabel = .Label
With theLabel
.LeftMargin = InchesToPoints(0.15)
.TopMargin = InchesToPoints(0.15)
.HorizontalGap = InchesToPoints(0.1)
.VerticalGap = InchesToPoints(0.1)
End With
End With
Properties | Application Property | Height Property | HorizontalGap Property | LeftMargin Property | Name Property | Parent Property | TopMargin Property | VerticalGap Property | Width Property
Parent Objects | Labels Collection | PageSetup Object
Child Objects