Finds the first loaded classic XLS text cell that contains the requested text
Syntax
function FindText(SearchText: WideString; out Row: Integer; out Col: Integer): Boolean; overload;
function FindText(SearchText: WideString; out Row: Integer; out Col: Integer; MatchCase: Boolean): Boolean; overload;
Anmärkningar
FindText genomsöker befintliga kalkylbladsceller i radordning och returnerar 1-baserade publika rad- och kolumnkoordinater för första träffen
The two-parameter overload is case-insensitive. Pass True for MatchCase när sökningen måste matcha den ursprungliga versal/gemen-formen exakt. Formelceller och celler utan text hoppas över
When no match is found, the method returns False and sets both coordinates to zero
Exempel
if Workbook.Sheets[1].FindText('[CONTACT]', Row, Col) then
Workbook.Sheets[1].Cells[Row, Col].Value := 'John Smith';
See Also