Read and write last row

Hi @Sabbir_Anwar

You can achieve this in two steps:

  1. Get Total Rows in table → dt.Rows.Count
  2. dr = dt.Rows(RowCount - 1)
    dt is a DataTable object, dr is DataRow.
    The dr object can then be used to retrieve column values as needed.

Please use the search feature on Forums to look up answers for simple questions such as this one. It’s always likely that someone has already had this problem and it’s resolved.
This will save you a lot of time (and community members too :slight_smile: )

https://forum.uipath.com/search?q=uipath%20excel%20read%20last%20row

3 Likes