SpaceBeforeAuto Property

Microsoft Word Visual Basic

True if Microsoft Word automatically sets the amount of spacing before the specified paragraphs. Returns wdUndefined if the SpaceBeforeAuto property is set to True for only some of the specified paragraphs. Can be set to either True or False. Read/write Long.

Remarks

When you open an HTML document without cascading style sheets, Word automatically sets the SpaceBeforeAuto property to True to render the paragraph spacing exactly as it would appear in a Web browser.

If SpaceBeforeAuto is set to True, the SpaceBefore property is ignored.

Example

This example displays a report showing the SpaceBeforeAuto settings for the active document.

Select Case ActiveDocument.Paragraphs.SpaceBeforeAuto
    Case True
        x = "Spacing before paragraphs is handled " _
            & "automatically for all paragraphs."
    Case False
        x = "Spacing before paragraphs is handled " _
            & "manually for all paragraphs."
    Case wdUndefined
        x = "Spacing before paragraphs is handled " _
            & "automatically for some paragraphs, " _
            & "manually for some paragraphs."
End Select