LeftMargin Property

Microsoft Publisher Visual Basic

expression.LeftMargin

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

You can only use the LeftMargin property when printing multiple pages on a single sheet of printer paper.

When used with the Label object, the LeftMargin property is read/write only when accessed from .PageSetup.Label. Otherwise, it is read-only.

Example

This example specifies a width of a quarter of an inch for the area between the edge of the printer paper and the left edge of the pages in the active publication.

Sub SetLeftMargin()
    With ActiveDocument.PageSetup
        .PageHeight = InchesToPoints(5)
        .PageWidth = InchesToPoints(8)
        .MultiplePagesPerSheet = True
        .LeftMargin = InchesToPoints(0.25)
    End With
End Sub