I have an excel sheet with column of Nameofclient, customerID, Customer name and Company ID. copy Nameofclient column and paste into customer name column and copy customer ID column and paste into company ID column in same excel sheet.
Hello @lokeshkumar.k ,
Either you can use the for each loop or the linq for this
assign
dt = dt.Clone
by clonoing you will get the structure of input datatable
Linq
(From row in dt.AsEnumerable
Select clonedt.LoadDatarow(New Object(){
row(“Nameofclient”).ToString,
row(“customerID”).ToString,
row(“Nameofclient”).ToString,
row(“customerID”).ToString
},False)).CopyToDataTable
Hi @lokeshkumar.k ,
try to user “Update row item” activity. like below mentioned workflow
ColumnValueAddToDataTable.xaml (10.1 KB)
Thanks,
Raj
(From row In Passport_Date_Filtration.AsEnumerable
Select ClonePassport_Date_Filtration.LoadDatarow(New Object(){
row(“NameOfClient”).ToString,
row(“CompanyName”).ToString,
row(“CustomerID”).ToString,
row(“CompanyID”).ToString
},False)).CopyToDataTable
I got this error. LoadDatarow is not a member of string
try to use the below code
(From row in Passport_Date_Filtration.AsEnumerable()
Select ClonePassport_Date_Filtration.LoadDataRow(New Object({
row(“NameOfClient”).ToString,
row(“CompanyName”).ToString,
row(“CustomerID”).ToString,
row(“CompanyID”).ToString
},false)).CopyToDataTable
Input - Copy.xlsx (10.9 KB)
I attached sample excel file and mentioned copy and paste column in colour
Nameofclient —> Customer Name
CustomerID -----> Company ID
I got this error
I tried this but its not wroking.
Input - Copy.xlsx (10.9 KB)
I attached the Input file and mark the column name in colur
Can you share the Output also @lokeshkumar.k
Hello @lokeshkumar.k
Kindly Refer this Xaml file
Forum_CopyPasteColumn.zip (75.0 KB)
I just want to copy one column into other column from this input sheet. I attached a output file and i need a output like that
Input - Copy.xlsx (10.9 KB)
Above Xaml file may helps for you. Kindly to refer this
Thanks for your help. Data copied successfully
Do you have any other queries related to this topic @lokeshkumar.k
This One is a New Queries right?
Close this topic by mark as solved and create an separate topic for this. @lokeshkumar.k
Regards
Gokul
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.