Paragraphs.SpaceBeforeAuto property (Word)
True if Microsoft Word automatically sets the amount of spacing before the specified paragraphs. Read/write Long.
Syntax
expression. SpaceBeforeAuto
expression A variable that represents a 'Paragraphs' collection.
Remarks
This property 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.
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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for