Expand Minimize
This topic has not yet been rated - Rate this topic

Range.Text Property (Word)

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

expression .Text

expression A variable that represents a Range object.

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

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

Set myRange = ActiveDocument.Words(1) 
myRange.Text = "Dear "
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.