Share via


AutoFormatWord Property [Publisher 2003 VBA Language Reference]

True for Microsoft Publisher to automatically format the entire word where the insertion point exists, even when no text is selected. Read/write Boolean.

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

Applies to | Options Object