The error is because you are trying to get the more number of rows than the datatable have which is not possible hence you are getting the error as index out of bound or range, buy using the method dt.Rows.Count you can get how many number of rows are there in that datatable.
@abdel
kindly Refer this
There are 2 duplicate columns, I just renamed it by adding 01 at end of the column name.
Because Read range will throw error while there is Duplicate column Forum_DeleteRange.zip (102.6 KB)
r
@abdel
Kindly check with this updated code
there is 2 flow DeleteRange1 and DeleteRange2. Utilize which can suitable for you Forum_DeleteRange.zip (160.6 KB)