CloseUp Microsoft Word Add-in VBA (Visual Basic for Applications)

CloseUp Microsoft Word Add-in VBA (Visual Basic for Applications)

CloseUp

This method allows removing any space before specified paragraph. Ideally it should be referred as Paragraph space cleaner method.

Code example

Public Sub ParaCloseUp()
	ActiveDocument.Paragraphs.CloseUp 
	ActiveDocument.Paragraphs.SpaceBefore = 0
End Sub

CloseUp with Selection

Public Sub ParaCloseUpWithSelection()
	Selection.Paragraphs.CloseUp
End Sub

Next >> Microsoft Word Paragraph Object a complete reference

Leave a Reply

Your email address will not be published.