Add column name in an already existing sheet in Excel

prev month.xlsx (14.0 KB)

what value should I provide in To field in assign? and Do I need to provide the same value in Write range activity?

Hi @ayushi_jain3

In your case Range you given is wrong so that’s why error is came.

Give this
Excel.Sheet(“B”)

It is working

@ayushi_jain3

In add data column activity:
image

@ayushi_jain3

I am attaching xaml for your reference

Test Sequence.xaml (8.7 KB)

@ayushi_jain3

If you got the solution for your issue. Please mark it as solution to close the loop.

Regards,

Hey @ayushi_jain3

U can use this method too
So basically i have build a datatable just with column names
and then i merged it to the input datatable
And then i wrote it into the excel
The addheaders property of Write range workbook should be checked

Test (2).zip (10.3 KB)

Hope it helps you!

Thankyou, it worked. I was not using double quotes in the column name !!

It is adding the required column name I am providing, nut also also an extra column before that as “Column1”

@ayushi_jain3

You can use this also to add column in datatable

image

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