TextRange2.Words Property
Gets a TextRange2 object that represents the specified subset of text words. Read-only.
Syntax
expression.Words(Start, Length)
expression An expression that returns a TextRange2 object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| Start | Optional | Long | The first word in the returned range. |
| Length | Optional | Long | The number of words to be returned. |
Return Value
TextRange2
Remarks
If bothand are omitted, the returned range starts with the first word and ends with the last paragraph in the specified range.
Ifis specified but is omitted, the returned range contains one word.
Ifis specified but is omitted, the returned range starts with the first word in the specified range.
Ifis greater than the number of words in the specified text, the returned range starts with the last word in the specified range.
Ifis greater than the number of words from the specified starting word to the end of the text, the returned range contains all those words. ofv
See also:
| Start | Length | Start | Length | Length | Start | Start | Length |