DisplayGridLines Property

MsoTriState

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse
msoTriStateMixed
msoTriStateToggle
msoTrue

expression.DisplayGridLines

*expression   * Required. An expression that returns an Application object.

Example

This example toggles the display of the gridlines in PowerPoint.

Sub ToggleGridLines()
    With Application
        If .DisplayGridLines = msoTrue Then
            .DisplayGridLines = msoFalse
        Else
            .DisplayGridLines = msoTrue
        End If
    End With
End Sub

Applies to | Application Object