I fetch the data table column and want to write it into the excel row with specific range. So i used write range activity:-
But bot is writing it in “K” column instead of row.
I fetch the data table column and want to write it into the excel row with specific range. So i used write range activity:-
But bot is writing it in “K” column instead of row.
It is not working. My concern is to write the data in row with specific range.
Currently i am getting this output:-
But i want to write the data from “K2 TO CE2”
It is writing only single value. Not working.
You have a column of values and you want to write those in the row right?
You need to transpose the column and write it in each cell or
the simpler way is
My write range is “K2:CE2”. How can i make it dynamic? Because here row number “2” is constant and letter is changing.
Yeah, you need to use another assign statement like
If index is less than 26
colToWrite = Convert.ToChar(64 + index).ToString
and if index is greater than 26
colToWrite = “A” + Convert.ToChar(64 + index - 26).ToString
if index greater than 52
colToWrite = “B” + Convert.ToChar(64 + index - 52).ToString
and so on.
Try to understand the logic here
@Jayesh_678
have alook on this component:
https://go.uipath.com/component/excel-index-to-column
with help of this you can retrieve easy the EXCEL Column letter from the an integer e.g. the index from the for each activity