FireDAC Components for Excel Online

Build 21.0.7930


Assign table names to ranges.


property DefineTables: String;

Data Type


Default Value



This property is used to define the ranges within a worksheet that will appear as tables. The value is a semicolon-separated list of name-value pairs in the form [Table Name]=[Workbook Name]_[Worksheet Name]![Range].

Here is an example DefineTables value:


After setting DefineTables, you can then issue queries that reference the specified table name. Note that you can also use the range syntax directly in the SQL statement: append the range to the worksheet name with the # character.

For example, the following command will select the range of cells between A1 and E5:

SELECT * FROM Test_xlsx_Sheet1#A1:E5

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930