TextFrame.TextRange Property
Word Developer Reference |
Returns a Range object that represents the text in the specified text frame.
Syntax
expression.TextRange
expression An expression that returns a TextFrame object.
Example
This example adds a text box to the active document and then adds text to the text box.
Visual Basic for Applications |
---|
|
This example adds text to TextBox 1 in the active document.
Visual Basic for Applications |
---|
|
This example returns the text from TextBox 1 in the active document and displays it in a message box.
Visual Basic for Applications |
---|
|
See Also