I would like to automate a read and write into a Excel-document.
Reading will take place inside a webbrowser, that works fine.
Now writing into the Excel document is the part what troubles me.
Each row starts with a value in column A,
I would like to be able to count and read if there are any values filled within columns A, D, E, F
If not, let Uipath write into that row.
I hope you are reading webtable and you are trying to write that into excel right, if yes use datascrapping feature of uipathn scrap the table and write into excel using write range
The following document is already existing and will be updated with the values taken from webapplication.
As you see, the rows where data is written starts from 5th (4th uipath).
Column A already has values. I need to verify if Column D, E and F are empty in the next available row, to input data in write cell with variables (this works).
1 - Read excel and strore output in data table ex - dt
2 - Use foreachrow activity to iterate each row one by one.
3 - In foreachrow body use if condition as " If Not String.IsNullOrEmpty(currentRow(“ColumnAName”).ToString) and String.IsNullOrEmpty(currentRow(“ColumnDName”).ToString and String.IsNullOrEmpty(currentRow(“ColumnEName”).ToString and String.IsNullOrEmpty(currentRow(“ColumnFName”).ToString
If above condition is true then update value
To Update Value use below expression in Assign acitvity
row(“ColumnNameYouWantToUpdate”) = Value
Not String.IsNullOrEmpty(currentRow(“ColumnAName”).ToString and String.IsNullOrEmpty(currentRow(“ColumnDName”).ToString and String.IsNullOrEmpty(currentRow(“ColumnEName”).ToString and String.IsNullOrEmpty(currentRow(“ColumnFName”).ToString