WorksheetFunction.FindB (Excel)

Find and FindB locate one text string within a second text string, and return the number of the starting position of the first text string from the first character of the second text string.

Find is intended for use with languages that use the single-byte character set (SBCS), whereas FindB 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:

FindB (Arg1, Arg2, Arg3)


Dim strArg1 As String: strArg1 = 
Dim strArg2 As String: strArg2 = 
Dim dblFindB As Double
dblFindB = WorksheetFunction.FindB(Arg1:=strArg1, Arg2:=strArg2)

Arguments

Arg1, Arg2, Arg3

Arg1 (String) - Find_text - the text you want to find.

Arg2 (String) - Within_text - the text containing the text that you want to find.

Arg3 - Start_num - specifies the character at which to start the search. The first character in within_text is character number 1. If you omit start_num, it is assumed to be 1