title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
TextFrame.MarginLeft property (Publisher) |
vbapb10.chm3866644 |
|
|
4e784b9f-9467-5a14-c211-589e69c3b8bc |
06/15/2019 |
medium |
Returns or sets a Variant that represents the amount of space (in points) between the text and the left edge of a cell, text frame, or page. Read/write.
expression.MarginLeft
expression A variable that represents a TextFrame object.
This example sets the margins of the active publication to two inches.
Sub SetPageMargins()
With ActiveDocument.LayoutGuides
.MarginTop = Application.InchesToPoints(Value:=2)
.MarginBottom = Application.InchesToPoints(Value:=2)
.MarginLeft = Application.InchesToPoints(Value:=2)
.MarginRight = Application.InchesToPoints(Value:=2)
End With
End Sub
[!includeSupport and feedback]