VisualSelection Property

Microsoft Word Visual Basic

Show All

VisualSelection Property

       

Returns or sets the selection behavior based on visual cursor movement in a right-to-left language document. Read/write WdVisualSelection.

WdVisualSelection can be one of these WdVisualSelection constants.
wdVisualSelectionBlock  All selected lines are the same width.
wdVisualSelectionContinuous  The selection wraps from line to line.

expression.VisualSelection

expression   Required. An expression that returns an Options object.

Remarks

The CursorMovement property must be set to wdCursorMovementVisual in order to use this property.

For more information on using Word with right-to-left languages, see Word features for right-to-left languages.

Example

This example sets the selection behavior so that the selection wraps from line to line.

If Options.CursorMovement = wdCursorMovementVisual Then _
    Options.VisualSelection = wdVisualSelectionContinuous