Share via


Flags Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

WdSelectionFlags

WdSelectionFlags can be one of these WdSelectionFlags constants.
wdSelActive
wdSelOvertype
wdSelStartActive
wdSelAtEOL
wdSelReplace

The return value of the Flags property is the sum of the WdSelectionFlags constants that apply to the selection.

Note: Setting the Flags property to wdSelAtEOL wil make the end of the selection active.

expression.Flags

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

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