With this function [FILE_FIRST (file;co;index;column)], you can enter the key for a specific table in the worksheet. You can use this function with the functions FILE_NEXT and FILE_FIELD.
The advantage of not selecting a company is that the same report can be used for each company. You only need to change the default company to get the right data.
Example
FILE_FIRST("btwtrs";001;"btwtrs")
The key of the first VAT-code in company 001 will be displayed.
Keep in mind: When you define this field, No index value is returned but the content of this field from the database. In this case, the field in the cell in the Microsoft Excel worsksheet cannot be used as a parameter for the FILE_NEXT and FILE_FIRST functions. When you want to use the result of this function to retrieve the next index value, you should leave this field blank.
The key of the first VAT-code in company 001 will be displayed. FILE_FIRST("btwtrs";001;"btwtrs";"landcode")
The value of the field "Landcode" from the first VAT-code in company 001 will be displayed.