Syntax

expression.Search(Arg1, Arg2, Arg3)

expression A variable that represents a WorksheetFunction object.

Parameters

Name Required/Optional Data Type Description
Arg1 Required String Find_text - the text you want to find.
Arg2 Required String Within_text - the text in which you want to search for find_text.
Arg3 Optional Variant Start_num - the character number in within_text at which you want to start searching.

Return Value
Double

Remarks

Important SEARCH is intended for use with languages that use the single-byte character set (SBCS), whereas SEARCHB is intended for use with languages that use the double-byte character set (DBCS). The default language setting on your computer affects the return value in the following way:

The languages that support DBCS include Japanese, Chinese (Simplified), Chinese (Traditional), and Korean.


See also: