Selection.Text Property
Word Developer Reference |
Returns or sets the text in the specified selection. Read/write String.
Syntax
expression.Text
expression A variable that represents a Selection object.
Remarks
The Text property returns the plain, unformatted text of the selection. When you set this property, the text of the range or selection is replaced.
Example
This example displays the text in the selection. If nothing is selected, the character following the insertion point is displayed.
Visual Basic for Applications |
---|
|
This example inserts 10 lines of text into a new document.
Visual Basic for Applications |
---|
|
See Also