I have this excel
Col A is the input format
Col B is the output which i need through UiPath
is there any activity to do this ? or do i need to write a VB code for the same
I have this excel
check the reference
Hi @Pogboom
PreviousValue = ""
For Each row in dtInput
CurrentValue = row("ColA").ToString
If CurrentValue = PreviousValue Then
row("ColB") = PreviousValue & " " & CurrentValue
Else
row("ColB") = CurrentValue
End If
PreviousValue = CurrentValue
End For Each
getting error as remove unused imports
is this the vb code??
No use readrange workbook and store it in a dt var and then follow
not working exception thrown col B should be the output which i want through bot
dt2 is not declared in this where is dt2 coming from ? reading forum excel file?
not working where have you declared dt2?
can you share the output file image?
finaloutput is coming as empty sheet. can you please validate again
what if i want to rewrite it in that first column only basically overwriting?
if you want to write it in the first column before to the write range activity use assign activity
And in the place of filepath use the input file path
If you find solution with mine,Please do mark mine as solution to close the loop
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.