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
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.