Transpose columns to row in excel (Using C#)

Hi team,

I want to transpose columns to row in excel.


expected output:

Am getting an error Assign: there is no row at position 0

This is bit urgent, can someone help me please.

I referred to this

Can someone help me with C# code. I found several posts in VB. Attached is the xaml file (3.7 KB)


I believe you can use some activites from UiPath Marketplace.

One of them is from @Lahiru.Fernando :

Or this one:

I hope it helps.


The first one gave me this error & second one worked for me.

Thank you so much


That’s great. Just mark it as a solution, if works well for you.

Didn’t tested the packages, till now. :slight_smile:


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.