@Julio_Mendoza Instead of using TablaconData.Rows(2).Item(“Procesado”) = “asdsa” +num1
use row.Item(“Procesado”) = “asdsa” +num1
because in your expression you are only updating the value of 2nd row index i.e. 3rd row
@Arpit_Kesharwani mentioned how do to that already in his replies. If you use TablaconData.Rows(2).item(“Procesado”) then you are selecting the datatable named ‘TablaconData’. Then you are selecting the 3rd row in that datatable, then you are selecting the column named ‘Procesado’ .
However, the way @Arpit_Kesharwani mentioned will work. You are already iterating through each row. Therefore if you just reference row.item(“procesado”) then you will be on the correct datarow - no need to get the current index. Just use an assign activity and type row.Item(“Procesado”) = “asdsa” +num1
Then after the for each loop is finished (outside of the for each loop) you should use a write range activity to write the datatable with the updated values back to excel
thank you very much guys, with your help i descover 2 ways(solutions).
First: TablaconData.Rows(cont).Item(“Procesado”)
i create a variable cont as a counter and then at the end of foreach i added 1 to the variable and it works.