Icon

05_​Read_​all_​sheets_​from_​an_​XLS_​file_​in_​a_​loop

Read all sheets from an XLS file in a loop

This workflow demonstrates how to read all sheets from an XML file using the XML Reader node together with the Read XLS Sheet Names node in a loop.

To read all sheets from an .xls file in a loop first add the Read XLS Sheet Names node to the workspace and chose the appropriate .xls file from the file system in the configuration dialog. The node lists all sheet names from the .xls file in a data table.

This table is used to feed the Table Row To Variable Loop Start node which takes one row from the data table in each loop and creates a flow variable from it. In the loop the created flow variable is fed into the XLS Reader as SHEET_NAME.

The Loop End node collects all the sheets by appending the rows.

This workflow reads all the sheets of an XML file using a loop. Collects readsheetsCreates variablesfrom the rowsReads the sheetnames from iris.xlsSet flow variable to sheetReads the sheetnames from iris.xlsCreates variablesfrom the rowsSet flow variable to sheetCollects readsheets Loop End(deprecated) Table Row To VariableLoop Start (deprecated) Read Excel Sheet Names(XLS) (deprecated) Excel Reader (XLS)(deprecated) Read Excel Sheet Names(XLS) (deprecated) Table Row To VariableLoop Start (deprecated) Excel Reader (XLS)(deprecated) Loop End(deprecated) This workflow reads all the sheets of an XML file using a loop. Collects readsheetsCreates variablesfrom the rowsReads the sheetnames from iris.xlsSet flow variable to sheetReads the sheetnames from iris.xlsCreates variablesfrom the rowsSet flow variable to sheetCollects readsheetsLoop End(deprecated) Table Row To VariableLoop Start (deprecated) Read Excel Sheet Names(XLS) (deprecated) Excel Reader (XLS)(deprecated) Read Excel Sheet Names(XLS) (deprecated) Table Row To VariableLoop Start (deprecated) Excel Reader (XLS)(deprecated) Loop End(deprecated)

Nodes

Extensions

Links