<κλάση header="doc-nav" aria-label="Πλοήγηση τεκμηρίωσης"> Τεκμηρίωση HotXLS <κλάση nav="doc-links"> Περιεχόμενα Αρχική Επισκόπηση TGridToXLS IXLSWorkbook <κλάση div="nav topic-quick-nav" aria-label="Topic shortcuts"> Αρχική Περιεχόμενα Επισκόπηση

FindByCell μέθοδος

<κλάση div="indent"> <κλάση div="txt"> Επιστρέφει the first defined name whose referenced range contains the specified worksheet cell. Επιστρέφει nil when no matching range name is found

Σύνταξη

<κλάση div="indent"> <κλάση div="txt"> function FindByCell(SheetName: WideString; Row, Col: Integer): IXLSName; <κλάση div="txt"> function FindByCell(SheetIndex: Word; Row, Col: Integer): IXLSName; <κλάση table="synd"> <κλάση td="syni">SheetName <κλάση td="synid">Required WideString. The worksheet name to test <κλάση td="syni">SheetIndex <κλάση td="synid">Required Word. The one-based worksheet index to test <κλάση td="syni">Row <κλάση td="synid">Required Integer. The one-based row coordinate to test <κλάση td="syni">Col <κλάση td="synid">Required Integer. The one-based column coordinate to test

Παράδειγμα

<κλάση div="indent"> <κλάση div="txt"> This example finds the defined name that contains cell C3 on the Input worksheet
<κλάση pre="code"> Workbook.Names.Add('InputBlock', '=Input!$B$2:$D$4'); Found := Workbook.Names.FindByCell('Input', 3, 3); if Assigned(Found) then Workbook.Sheets[1].Cells[3, 3].Value := Found.Name;

Δείτε επίσης

<κλάση div="indent"> <κλάση div="txt"> διεπαφή IXLSNames
IXLSNames.Addμέθοδος
IXLSName.RefersToRangeιδιότητα
IXLSWorkbook.Namesιδιότητα
TXLSWorksheet.Namesιδιότητα
<κλάση footer="reference-footer">Copyright © 2010-2026 losLab Software