FindString

This method searches a string or a substring in the current worktext.

Syntax

FindString (StartPos as Long, Search as String) as Long
Parameter Description
StartPos Position to start searching.
Search Text to search.

Return value

Index of the first character in the worktext, where the search string is found.

or

"-1" if no string is found.