DisplayGridLines Property

Microsoft PowerPoint Visual Basic

Show All

DisplayGridLines Property

       

MsoTrue to display gridlines in Microsoft PowerPoint. Read/write 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