Hi @damonyl - Use Read Range Excel, that will store the output as Data Table. Then For Each Row of Data Table use Write Cell Activity. In Write Cell pass the cell range something like this “A” & Counter. This “Counter” should be integer and incremented after the write.
Hence write cell A1 gets incremented to A2, A3 like that inside the For Each Row Data Table.
Also the at the same time the text your going to write using Write Cell should be row(counter).ToString
It should be
Read Range Data Table
For Each Datatable
Write Cell = row(Counter).ToString and Range = “A” & Counter
Hi @AnandKumar26 But as from your answer, is this write in a column, what i need is A2,b2,c2…, write in a row.
If in VBA, that’s function can write the cell coordinate like (counter, 2) so can increase in row, not sure if VBA has it. or any method bring out the same way
Hello @damonyl
If you want you can iterate the letters to using this Code Convert.ToChar(Convert.ToUInt16("A"C)+1)
in place of add your counter and it’ll add the letters just like numbers
Check the sample workflow for better understanding IncrementOption.xaml (8.8 KB)
Hello @damonyl Convert.ToChar(Convert.ToUInt16("A"C)+1)
Here ("A"C) is our character (Convert.ToUInt16("A"C) here we are converting our Character to Integer so that we can add our number to get different value
(Convert.ToUInt16("A"C)+1) here as we have converted our value to Int we are adding an integer here its 1 so after adding that we’ll get a value in integer type
Convert.ToChar(Convert.ToUInt16("A"C)+1) in this final step we are converting are integer value once again to character to get the desired alphabet
We have already assigned it’s value as A but by adding + 1 we are getting the next alphabet