I want to update a column in an Excel with a formula and fill each of its cell with the formula result. In order to fill each cell with the value, I use For Each Row and Write Cell activity. However, I got some issues while setting the properties of Write Cell activity as below image (mostly about data type):
In what to write property, you can only able to pass the string variables. So add .tostring after the code you have written(if the code returns any type like integer, double etc then it converts to string).
In Where to write, give like this: Excel.Sheet("Sheet1").Cell("C1") Then it writes the value in particular cell c1
Note: Don’t forget to check the auto increment row increment the cell value for each iteration.
Hi @D_Okthree you are using write cell and in that field you write Excel.Sheet("Sheet1).Range(“C2”), you use range that’s why you are getting error, replace range with cell as follows: