AutoFormatDeleteAutoSpaces Property

Microsoft Word Visual Basic

expression.AutoFormatDeleteAutoSpaces

expression    Required. An expression that returns an Options object.

Example

This example sets Microsoft Word to automatically delete spaces between Japanese and Latin text, and then it formats the current selection.

Options.AutoFormatDeleteAutoSpaces = True
Selection.Range.AutoFormat