I have one datatable which contains only headers for my table (like Country, Sales, target etc.)
And I have another datatable which has the table values for the given colum headers(like India, 5000rs, 6000rs etc.)
I want to combine this two datatables into one so I can get Column headers for the values of existing table with values.
I tried using merge datatable activity but the column headers are not above the values instead the are aside the values table and not over them.
Please Help, Thankyou!
(find the images attached below of expected output)
Hi @poojan.shah1 ,
Can you share your file input and expect output?
by image pls
I think can use append range or write with no header to original
regards,
How about this?
The first “read range” has the option AddHeaders.
The assigns in the “For Each”:
ValuesDT.Columns(ColumnNumber).ColumnName = Column.ColumnName
ColumnNumber = ColumnNumber + 1
1 Like
@poojan.shah1
Hi
Try with append range activity
Use excel application scope inside use read range activity for reading the data which has data
Below read range use append range activity and pass the read range output
This will work if the two sheets are in same excel file.
Cheers
1 Like
Hi @poojan.shah1 ,
I created the similar you
input/output
my code
WithoutHeader.zip (61.9 KB)
regards,
2 Likes
Anil_G
(Anil Gorthi)
September 23, 2023, 6:08pm
7
@poojan.shah1
Just use write range with add headers option unchecked and range as A2 or append range also should do
Cheers
1 Like
system
(system)
Closed
September 26, 2023, 6:09pm
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.