CloseUp Method

Removes any spacing before the specified paragraphs.

expression**.CloseUp**

expression Required. An expression that returns a Paragraph, Paragraphs, or ParagraphFormat object.

Remarks

The following two statements are equivalent:

ActiveDocument.Paragraphs(1).CloseUp
ActiveDocument.Paragraphs(1).SpaceBefore = 0

Example

This example removes any space before the first paragraph in the selection.

Selection.Paragraphs(1).CloseUp

This example changes the Heading 1 style in the active document so that there's no space before Heading 1 paragraphs.

ActiveDocument.Styles("Heading 1").ParagraphFormat.CloseUp

Applies to | Paragraph Object | ParagraphFormat Object | Paragraphs Collection Object

See Also | OpenOrCloseUp Method | OpenUp Method | SpaceAfter Property | SpaceBefore Property