The column number and row numbers are not fixed. I have attached a screenshot.
Columns can go beyond Z and same with rows.
How I do it manually:
I copy the whole column one by one excluding the header (ex: A, B, C… till ‘n’ Columns)
(In the screen shot i have selected only one column.)
Then paste all the cells under the header in a webpage.
I have have created a bot for this which can perform this task but it pastes only one row item at a time. Ex: It will paste: A2 then A3 then A4 and so on. Then it loops through column and pastes B2 then B3 then B4…
Each header acts as a web link for me. I just concatenate the cell value. For example in A1 cell :
xyz.com/df/2332019 (A1 cell value)
So when the BOT loops through each column, it opens a new webpage, where the corresponding values (rows under the header) need to be pasted. So each header acts as a a weblink (for reference i have hyperlinked it).
Just want to understand you want bot to click headers of the excel also ?
Is so then use below steps
1 - Read whole excel file from read range activity
2 - Iterate on each columns shown below
Here in item you will get the value of column.
If you want to implement click in excel then open excel and click on Text.
Now their are many ways to copy data
1 - As you have all the data in dt already then you can iterate each data of column and paste it on destination.
Or
2 - You can use Read Column and paste it on destination.
Or
Get last row of column and Read only that data and paste it on destination.
Thanks for the reply.
Actually the input file can have n number of columns and n number of rows. (Dynamic)
Name of the headers is also not constant.
Could you please explain how i can execute Point 1 or Point 2?
Sorry Im new at this.
I just need to copy data under the header. For ex: A2:A8 in case of A column, B2:B6 for B column and loop until the last column (which is E in this case)
This is Working just fine.
Actually i need to paste this data (which is appearing in message box) in a webpage field.
I used your code into a type into activity to paste it into a web page.
But It is entering the data (Through type into) but one by one. Ex: A2 then A3 . A4…
I tried simuting the type. But its not supporting it.
Hey @NIVED_NAMBIAR
Seems like i just need to add some delay. And its working perfect. Thanks a lot.
Can you suggest me from where i can learn this coding part? I’m using uipath from last 4-5 months and able to do basic tasks. But I also want to learn this coding as well.