Selecting Text in a Document
Word Developer Reference |
Use the Select method to select an item in a document. The Select method is available from several objects, such as Bookmark, Field, Range, and Table. The following example selects the first table in the active document.
|
The following example selects the first field in the active document.
|
The following example selects the first four paragraphs in the active document. The Range method is used to create a Range object that refers to the first four paragraphs. The Select method is then applied to the Range object.
|
For more information, see Working with the Selection object.