Skip to content

Latest commit

 

History

History
72 lines (40 loc) · 1.16 KB

PowerPoint.Presentation.SnapToGrid.md

File metadata and controls

72 lines (40 loc) · 1.16 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Presentation.SnapToGrid property (PowerPoint)
vbapp10.chm583061
vbapp10.chm583061
PowerPoint.Presentation.SnapToGrid
d0155913-cca5-c2ed-b1cc-6463a573ff49
06/08/2017
medium

Presentation.SnapToGrid property (PowerPoint)

Determines whether to snap shapes to the gridlines in the specified presentation. Read/write.

Syntax

expression. SnapToGrid

expression A variable that represents a Presentation object.

Return value

MsoTriState

Remarks

The value of the SnapToGrid property can be one of these MsoTriState constants.

msoFalse
msoTrue

Example

This example switches snapping shapes to the gridlines in the active presentation.

Sub ToggleSnapToGrid()

    With ActivePresentation

        If .SnapToGrid = msoTrue Then

            .SnapToGrid = msoFalse

        Else

            .SnapToGrid = msoTrue

        End If

    End With

End Sub

See also

Presentation Object

[!includeSupport and feedback]