TextRange2.Find Method
Searches a TextRange2 object for a subset of text.
Syntax
expression.Find(FindWhat, After, MatchCase, WholeWords)
expression An expression that returns a TextRange2 object.
Parameters
| Name | Required/Optional | Data Type | Description |
|---|---|---|---|
| FindWhat | Required | String | Contains the text to find. |
| After | Optional | Long | Specifies the point in the text range to start the search. |
| MatchCase | Optional | MsoTriState | Specifies if the target text must exactly match the case of the search text. |
| WholeWords | Optional | MsoTriState | Specifies that only whole words will be searched. |
Return Value
TextRange2