@Mariafig
I have sent you an modified file by message. Once I have done with my dinner I will give you a feedback on the edit. However can you check the new file in the meanwhile?
Hi
You were almost done
May be these steps in sequence would help you resolve this
—use Excel application scope and pass the file path of the excel as input
—inside the scope use a READ range activity and get the output with a variable of type datatable named dt
—followed by this use a assign activity like this dt = dt.AsEnumerable().Orderby(Function(a) a.Field(of string)(“Land”).ToString).CopyToDatatable()
So the ordered column will be now copied back to the datatable and we don’t need to use a for each row loop at all
Or even we got a better option @Mariafig
SORT DATATABLE ACTIVITY can be directly used once after using read range activity
Where mention the input as dt and output as again dt and mention the column index as 1 with sort as ascending or descending so that it will get sorted
@Mariafig As column index usually starts from 0 for the columns in a datatable
Kindly try this and let know for any queries or clarification
Cheers