hi good evening dear developers, i have a scenario the excel file is like this
i want to split this sample table into another excel file with multiple sheets using the index value renaming the sheet with the index. the outcome should be like this
Then you can use a for each loop to create each new sheet (with index name) and write the name / index onto each sheet (use Write Range and add row.item(“Index”).ToString as sheetname)
The range it will be “B1”
For Datatable, you will need to just get the current row.
Table.Select(“Index ='”+row.Item(“Index”).ToString+“'”).copytodatatable