Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.01 KB

seltext-property.md

File metadata and controls

39 lines (27 loc) · 1.01 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
SelText property
fm20.chm2001890
fm20.chm2001890
Office.SelText
75b9c27f-f6f7-6445-6d86-a53f046c1db6
11/16/2018
medium

SelText property

Returns or sets the selected text of a control.

Syntax

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.

Remarks

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.

See also

[!includeSupport and feedback]