AutoFormatWord Property

Microsoft Publisher Visual Basic

expression.AutoFormatWord

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

If only one or two characters in a word is selected, only the selected characters will be affected by a formatting change not the whole word.

Example

This example sets global options for Microsoft Publisher, including enabling automatic formatting of the entire word.

Sub SetGlobalOptions()
    With Options
        .AutoFormatWord = True
        .AutoKeyboardSwitching = True
        .AutoSelectWord = True
        .DragAndDropText = True
        .UseCatalogAtStartup = False
        .UseHelpfulMousePointers = False
    End With
End Sub