Read excel till last nonempty row


#1

Hi,
I want my BOT to read excel till it doesnt come across empty row.
plus, after Reading each row it is Writing that data into webpage text fields.
So how can i run my bot till it doesn’t come across last empty row and as it finds last empty row it should stop.


#2

You mean you have empty rows in between data in the excel file?


#3

no…it has continues series of data an di want my bot to read till it finds rows till data


#4

any suggestions


#5

Read range exactly does that…you can save the data inside a DataTable and extract it using row(“YourFieldNameInsideExcel”).toString
And type this into where ever you want to…:slight_smile:


#6

yeah…i have done read range inside application scope and then for each row to get each row item and saved it into variable.
But now whats happening is…after inserting each row data into application my application is inserting a new row to insert data read from excel.
so the need is, that new row should only be inserted till it fetches data from excel .After all the data from excel is typed into the application then new row should not be inserted.


#7

Please post the .xaml and xlsx files


#8

not possible


#9

give if condition in for each

if row(0).tostring Is nothing
then
Break
else
Type into