title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
SelText property |
fm20.chm2001890 |
|
|
75b9c27f-f6f7-6445-6d86-a53f046c1db6 |
11/16/2018 |
medium |
Returns or sets the selected text of a control.
object.SelText [= String ]
The SelText property syntax has these parts:
Part | Description |
---|---|
object | Required. A valid object. |
String | Optional. A string expression containing the selected text. |
If no characters are selected in the edit region of the control, the SelText property returns a zero length string. This property is valid regardless of whether the control has the focus.
[!includeSupport and feedback]