Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Text Property
Collapse the table of content
Expand the table of content

Range.Text Property

Office 2007
Returns or sets the text in the specified range or selection. Read/write String. Read/write String.

Syntax

expression.Text

expression   A variable that represents a Range object.

Remarks

The Text property returns the plain, unformatted text of the range. When you set this property, the existing text in the range is replaced.

Example

This example replaces the first word in the active document with "Dear."

Visual Basic for Applications
Set myRange = ActiveDocument.Words(1)
myRange.Text = "Dear "



Community Additions

ADD
Show:
© 2015 Microsoft