Class Paragraphs (Word VBA)
A collection of Paragraph objects in a selection, range, or document.
The classes Document, Range and Selection. give access to class Paragraphs
Dim prgs as Paragraphs
Set prgs = ActiveDocument.Range.Paragraphs
Methods
Add - Returns a Paragraph object that represents a new, blank paragraph added to a document.
CloseUp - Removes any spacing before the specified paragraphs.
DecreaseSpacing - Decreases the spacing before and after paragraphs in six-point increments.
IncreaseSpacing - Increases the spacing before and after paragraphs in six-point increments.
Indent - Indents one or more paragraphs by one level.
IndentCharWidth - Indents one or more paragraphs by a specified number of characters.
IndentFirstLineCharWidth - Indents the first line of one or more paragraphs by a specified number of characters.
Item - Returns an individual Paragraph object in a collection.
OpenOrCloseUp - Toggles spacing before paragraphs.
OpenUp - Sets spacing before the specified paragraphs to 12 points.
Outdent - Removes one level of indent for one or more paragraphs.
OutlineDemote - Applies the next heading level style (Heading 1 through Heading 8) to the specified paragraphs.
OutlineDemoteToBody - Demotes the specified paragraph or paragraphs to body text by applying the Normal style.
OutlinePromote - Applies the previous heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs.
Reset - Removes manual paragraph formatting (formatting not applied using a style).
Space1 - Single-spaces the specified paragraphs.
Space15 - Formats the specified paragraphs with 1.5-line spacing.
Space2 - Double-spaces the specified paragraphs.
TabHangingIndent - Sets a hanging indent to a specified number of tab stops.
TabIndent - Sets the left indent for the specified paragraphs to a specified number of tab stops.
Properties
AddSpaceBetweenFarEastAndAlpha true if Microsoft Word is set to automatically add spaces between Japanese and Latin text for the specified paragraphs. This property returns wdUndefined if it's set to True for only some of the specified paragraphs.
AddSpaceBetweenFarEastAndDigit true if Microsoft Word is set to automatically add spaces between Japanese text and numbers for the specified paragraphs. This property returns wdUndefined if it's set to True for only some of the specified paragraphs.
Alignment returns or sets a WdParagraphAlignment constant that represents the alignment for the specified paragraphs.
AutoAdjustRightIndent true if Microsoft Word is set to automatically adjust the right indent for the specified paragraphs if you've specified a set number of characters per line. Returns wdUndefined if the AutoAdjustRightIndent property is set to True for only some of the specified paragraphs.
BaseLineAlignment returns or sets a WdBaselineAlignment constant that represents the vertical position of fonts on a line.
Borders returns a Borders collection that represents all the borders for the specified object.
CharacterUnitFirstLineIndent returns or sets the value (in characters) for a first-line or hanging indent. Use a positive value to set a first-line indent, and use a negative value to set a hanging indent.
CharacterUnitLeftIndent returns or sets the left indent value (in characters) for the specified paragraphs.
CharacterUnitRightIndent returns or sets the right indent value (in characters) for the specified paragraphs.
Count returns a Long that represents the number of paragraphs in the collection.
DisableLineHeightGrid true if Microsoft Word aligns characters in the specified paragraphs to the line grid when a set number of lines per page is specified. Returns wdUndefined if the DisableLineHeightGrid property is set to True for only some of the specified paragraphs.
FarEastLineBreakControl true if Microsoft Word applies East Asian line-breaking rules to the specified paragraphs. Returns wdUndefined if the FarEastLineBreakControl property is set to True for only some of the specified paragraphs.
First returns a Paragraph object that represents the first item in the Paragraphs collection.
FirstLineIndent returns or sets the value (in points) for a first line or hanging indent. Use a positive value to set a first-line indent, and use a negative value to set a hanging indent.
Format returns or sets a ParagraphFormat object that represents the formatting of the specified paragraph or paragraphs.
HalfWidthPunctuationOnTopOfLine true if Microsoft Word changes punctuation symbols at the beginning of a line to half-width characters for the specified paragraphs. This property returns wdUndefined if it's set to True for only some of the specified paragraphs.
HangingPunctuation true if hanging punctuation is enabled for the specified paragraphs. This property returns wdUndefined if it's set to True for only some of the specified paragraphs.
Hyphenation true if the specified paragraphs are included in automatic hyphenation. False if the specified paragraphs are to be excluded from automatic hyphenation.
KeepTogether true if all lines in the specified paragraphs remain on the same page when Microsoft Word repaginates the document.
KeepWithNext true if the specified paragraphs remain on the same page as the paragraphs that follow it when Microsoft Word repaginates the document.
Last returns a Paragraph object that represents the last item in the collection of paragraphs.
LeftIndent returns or sets a Single that represents the left indent value (in points) for the specified paragraphs.
LineSpacing returns or sets the line spacing (in points) for the specified paragraphs.
LineSpacingRule returns or sets the line spacing for the specified paragraphs.
LineUnitAfter returns or sets the amount of spacing (in gridlines) after the specified paragraphs.
LineUnitBefore returns or sets the amount of spacing (in gridlines) before the specified paragraphs.
NoLineNumber true if line numbers are repressed for the specified paragraphs. Can be True, False, or wdUndefined.
OutlineLevel returns or sets the outline level for the specified paragraphs.
PageBreakBefore true if a page break is forced before the specified paragraphs. Can be True, False, or wdUndefined.
ReadingOrder returns or sets the reading order of the specified paragraphs without changing their alignment.
RightIndent returns or sets the right indent (in points) for the specified paragraphs.
Shading returns a Shading object that refers to the shading formatting for the specified paragraphs.
SpaceAfter returns or sets the amount of spacing (in points) after the specified paragraph or text column.
SpaceAfterAuto true if Microsoft Word automatically sets the amount of spacing after the specified paragraphs.
SpaceBefore returns or sets the spacing (in points) before the specified paragraphs.
SpaceBeforeAuto true if Microsoft Word automatically sets the amount of spacing before the specified paragraphs.
Style returns or sets the style for the specified paragraphs. Read/write Variant.
TabStops returns or sets a TabStops collection that represents all the custom tab stops for the specified paragraphs.
WidowControl true if the first and last lines in the specified paragraph remain on the same page as the rest of the paragraph when Word repaginates the document. Can be True, False or wdUndefined.
WordWrap true if Microsoft Word wraps Latin text in the middle of a word in the specified paragraphs.