SelectionMargin property

Specifies whether the user can select a line of text by clicking in the region to the left of the text.

Syntax

object.SelectionMargin [= Boolean ]

The SelectionMargin property syntax has these parts:

Part Description
object Required. A valid object.
Boolean Optional. Whether clicking in the margin selects a line of text.

Settings

The settings for Boolean are:

Value Description
True Clicking in margin causes selection of text (default).
False Clicking in margin does not cause selection of text.

Remarks

When the SelectionMargin property is True, the selection margin occupies a thin strip along the left edge of a control's edit region. When set to False, the entire edit region can store text.

If the SelectionMargin property is set to True when a control is printed, the selection margin also prints.

See also

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.