QScript ExcelWorkbookData
Jump to navigation
Jump to search
ExcelWorkbookData
The Excel workbook that a data file was imported from. It has every worksheet of the workbook, not only the worksheet the variables came from. Get one from DataFile.sourceExcelWorkbook and keep it in a variable: each object reads the workbook file once, when it is first used, and its worksheets all read that one copy. The file is read from where the data file gets its data. For a data file from a URL or a cloud drive, that is the file as it is now, which can differ from the file at the last import. Reading the workbook changes nothing in the document.
equals(obj)
Whether two objects are the same.
| obj | The object to compare against. |
| Returns: | true or false |
| Example: | data_file.getQuestionByName('Q2').equals(data_file.questions()[0])
|
nameOfWorksheetUsedForVariables
Gets the name of the worksheet that the variables of the data file were imported from. Null when the document does not record which worksheet that was.
type
Returns the name we use to refer to this class in the documentation.
worksheets
Gets an array containing all worksheets in the workbook, in workbook order. The array includes hidden worksheets. The first worksheet is [0].