I have a datatable in Uipath called “Fakturadetaljer” and want to go through each row for a specified column.
For example I wan’t to write down each row from “column1” into Excel by using For each row-activity. To write in Excel I use the Write Value-activity but as for now it only types the value from each row in the same cell in excel.
How do i get UIpath to move on and write in the next cell for each row in the column?
This post has been of great help to me as it got me ALMOST to my goal.
Goal: Copy a number from Excel cell starting on A2 (A1 is a header), enter it into a web search, copy data from the result, and paste it into B2 (B1 is a header). Then continue down a list with the same process and paste the data into B3, B4, B5, etc.
Problem: Everything works, but it starts pasting the data from in B10 instead of B2. So, it pastes the data acquired from A2 into B10 (instead of B2), then pastes the data acquired from A3 into B11 (instead of B3), etc.
I am using the activity Assign to set the variable MYROW=TaxLienData.Rows.IndexOf(row) as the example shows. Then I have used the activity Write Value to set the Input Range to “B1”+ MYROW. I could not get the activity Write Cell to work at all which I think is due to fact I am using an Excel Application Scope.
I also tried using a Message Box to find out the value of MYROW and it starts with 0 then 1, 2, 3, etc., so I don’t think that part is the problem.
Could someone help with a nudge in the right direction, please? Sorry I cannot upload a Zip file with my work because I am a new user.
When I tried “B”&MYROW, I got a compiler error that said I could not use it. After changing MYROW to INT32, I no longer got the compiler error, but I got “Main has thrown an exception” “Message: The range does not exist” “Source: Write Value” “Exception Type: Excel Exception”
i assume you are using the write value under excel application,what I suggested was using the “write cell” under file>workbook.
来自阿里邮箱 iPhone版 ------------------原始邮件 ------------------发件人:cisdenco uipath@discoursemail.com日期:2016-12-19 10:39:43收件人:robin.he@rpafintech.com robin.he@rpafintech.com主题:[UiPath Community Forum - Robotic Process Automation] [How To] Excel - How to move and write in the cell below?
cisdenco
December 19
When I tried "B"&MYROW, I got a compiler error that said I could not use it. After changing MYROW to INT32, I no longer got the compiler error, but I got "Main has thrown an exception" "Message: The range does not exist" "Source: Write Value" "Exception Type: Excel Exception"
Visit Topic or reply to this email to respond.
In Reply To
robinhe69
December 17
Just use "B"&myrow ,instead of "B1"+myrow.
Please make sure you have opened your workbook using excel application scope. I have just tested again using the write value. It works well.
来自阿里邮箱 iPhone版 ------------------原始邮件 ------------------发件人:cisdenco uipath@discoursemail.com日期:2016-12-19 10:39:38收件人:robin.he@rpafintech.com robin.he@rpafintech.com主题:[UiPath Community Forum - Robotic Process Automation] [How To] Excel - How to move and write in the cell below?
cisdenco
December 19
When I tried "B"&MYROW, I got a compiler error that said I could not use it. After changing MYROW to INT32, I no longer got the compiler error, but I got "Main has thrown an exception" "Message: The range does not exist" "Source: Write Value" "Exception Type: Excel Exception"
Visit Topic or reply to this email to respond.
In Reply To
robinhe69
December 17
Just use "B"&myrow ,instead of "B1"+myrow.