LayoutGuides object (Publisher)

Represents the measurement grid that appears superimposed on publication pages as an aid to laying out design elements.

Remarks

Use the LayoutGuides property of the Document object to return a LayoutGuides object.

Use the LayoutGuide object's margin properties and Rows and Columns properties to set how many rows and columns are displayed in the layout guides and where they appear on a page.

Example

This example sets the margins of the active presentation to two inches.

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

Properties

See also

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.