Selection.Flags property (Word)

Returns or sets properties of the selection. Read/write WdSelectionFlags.

Syntax

expression.Flags

expression Required. An expression that returns a Selection object.

Example

This example selects the first word in the active document. The first message box displays "False" because the end of the selection is active. The Flags property makes the beginning of the selection active, and the second message box displays "True."

ActiveDocument.Words(1).Select 
MsgBox Selection.StartIsActive 
Selection.Flags = wdSelStartActive 
MsgBox Selection.StartIsActive

This example turns on overtype mode for the selection.

Selection.Flags = wdSelStartActive

See also

Selection 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.