How to check when row in excel finish

HI,
i have an excel and I want to know how to stop writing on the page where i have to put the result of the excel when it detects the last row.

Tengo en un excel que quiero escribirlo en una página web, pero no se como hacer para que deje de escribir cuando detecte la ultima fila del excel.

gracias

Hi Crirola,

you can get the last row by

DataTableVariable.rows.count

Thanks,
Rounak