I have 2 excel files, how to write the columns having the same order number in new excel files ?
Thank You,
Follow this Workflow steps:
-
Read Range dt1
-
Read Range dt2
-
Assign activity:
dtResult = dt1.Clone() -
For Each Row activity:
For each row in dt1.Rows:
DataRow newRow = dtResult.NewRow()
For each column in dt1.Columns:
newRow(column.ColumnName) = row(column.ColumnName)
dtResult.Rows.Add(newRow) -
For Each Row activity:
For each row in dt2.Rows:
DataRow newRow = dtResult.NewRow()
For each column in dt2.Columns:
newRow(column.ColumnName) = row(column.ColumnName)
dtResult.Rows.Add(newRow) -
Use Write Range