Application.DisplayGridLines property (PowerPoint)

Determines whether to display gridlines in Microsoft PowerPoint. Read/write.

Syntax

expression. DisplayGridLines

expression A variable that represents an Application object.

Return value

MsoTriState

Remarks

The value returned by the DisplayGridLines property can be one of these MsoTriState constants.

Constant Description
msoFalse Do not display gridlines.
msoTrue Display gridlines.

Example

This example switches 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

See also

Application Object

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.