요청한 텍스트를 포함하는 로드된 첫 번째 기존 XLS 텍스트 셀을 찾습니다
구문
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;
비고
FindText는 기존 워크시트 셀을 행 우선 순서로 스캔하고 첫 번째 일치 항목에 대한 1 기반 공개 행 및 열 좌표를 반환합니다
두 매개변수 오버로드는 대/소문자를 구분하지 않습니다. 원래 대/소문자와 정확히 일치해야 할 경우 MatchCase에 True를 전달합니다. 수식 셀과 비텍스트 셀은 건너뜁니다
일치 항목이 없으면 메서드는 False를 반환하고 두 좌표를 모두 0으로 설정합니다
예제
if Workbook.Sheets[1].FindText('[CONTACT]', Row, Col) then
Workbook.Sheets[1].Cells[Row, Col].Value := 'John Smith';
참조