ParagraphFormat.SpaceBefore property (PowerPoint)

Returns or sets the amount of space before the first line in each paragraph of the specified text, in points or lines. Read/write.


expression. SpaceBefore

expression A variable that represents a ParagraphFormat object.

Return value



This example sets the spacing before paragraphs to 6 points for the text in shape two on slide in the active presentation.

With Application.ActivePresentation.Slides(1).Shapes(2)

    With .TextFrame.TextRange.ParagraphFormat

        .LineRuleBefore = False

        .SpaceBefore = 6

    End With

End With

See also

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