TextFrame.MarginLeft property (Publisher)
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.
Syntax
expression.MarginLeft
expression A variable that represents a TextFrame object.
Example
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for