ParagraphFormat.SpaceAfterAuto property (Word)

True if Microsoft Word automatically sets the amount of spacing after the specified paragraphs. Read/write Long.

Syntax

expression. SpaceAfterAuto

expression A variable that represents a 'ParagraphFormat' object.

Remarks

Returns wdUndefined if the SpaceAfterAuto property is set to True for only some of the specified paragraphs. Can be set to either True or False.

If SpaceAfterAuto is set to True, the SpaceAfter property is ignored.

Example

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

Select Case ActiveDocument.Range.ParagraphFormat.SpaceAfterAuto 
 Case True 
 x = "Spacing after paragraphs is handled " _ 
 & "automatically for all paragraphs." 
 Case False 
 x = "Spacing after paragraphs is handled " _ 
 & "manually for all paragraphs." 
 Case wdUndefined 
 x = "Spacing after paragraphs is handled " _ 
 & "automatically for some paragraphs, " _ 
 & "manually for some paragraphs." 
End Select

See also

ParagraphFormat Object

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.