Workflow Steps:
- Use Excel Application Scope
Input: your Excel file path.
- Use ‘Read Range’ (Workbook or Excel)
Read the entire sheet into a DataTable (e.g., dtRaw).
Set preserve format to false.
Leave the range blank to read the whole sheet.
- Identify Header Row (Start of Table)
Use a For Each Row (Index Enabled) activity to scan for a known header.
If row(“Column1”).ToString.Contains(“Name”) AndAlso row(“Column2”).ToString.Contains(“Amount”)
When matched, store the index as startIndex.
- Extract Table Rows
Now filter all rows from startIndex to end.
Use an Assign activity:
dtTable = dtRaw.AsEnumerable().Skip(startIndex).CopyToDataTable()
This gives you the red-highlighted table into a new DataTable.
Try this one!