GridDistance Property

Sets or returns a Single that represents the distance between grid lines. Read/write.

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

Applies to | Presentation Object