Share via


Paragraphs Method

Paragraphs Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns a TextRange object that represents the specified paragraphs.

expression.Paragraphs(Start, Length)

expression   Required. An expression that returns a TextRange object.

Start  Required Long. The first paragraph in the returned range.

Length  Optional Long. The number of paragraphs to be returned. Default is 1.

Remarks

If Length is omitted, the returned range contains one paragraph.

If Length is greater than the number of paragraphs from the specified starting paragraph to the end of the text, the returned range contains all those paragraphs.

Example

This example formats as indents the first line of the selected paragraph.

  Sub FormatCurrentParagraph()
    Selection.TextRange.Paragraphs(Start:=1).ParagraphFormat _
        .FirstLineIndent = InchesToPoints(0.5)
End Sub