GridDistance Property

Microsoft PowerPoint Visual Basic

expression.GridDistance

expression    Required. An expression that returns an Presentation object.

Example

This example displays the gridlines, and then specifies the distance between grid lines and enables the snap to grid setting.

Sub SetGridLines()
    Application.DisplayGridLines = msoTrue
    With ActivePresentation
        .GridDistance = 18
        .SnapToGrid = msoTrue
    End With
End Sub