I used read range to read excel file and the sample generate columns are OrderDate , Region, Rep and ETC.
And then I used for each to get each column
Now I wanted to rename column Region to “Test Region” and when I loop through the columns again the output should be , since I renamed it . Any idea guys .? Thanks
OrderDate , Test Region, Rep and ETC.
Thank you for any answers and idea.
ImPratham45
(Prathamesh Patil)
October 10, 2020, 11:39am
3
Read Range output = Dt
Then For Renaming use
DT.Columns(0).ColumnName = “newColumnName”
Here I am renaming 0th Column i.e. First Column u can use old column name instead of index
2 Likes
But I wanted to rename it inside the for each , how would I do that ?
ImPratham45
(Prathamesh Patil)
October 10, 2020, 11:42am
5
Then store the Rename Columns name in a list or array
Then use
In for each ----Assign Index
DT.Columns(Index).ColumnName=Array(Index)
Can you please provide a sample workflow Sir ?
Cant we rename the column in this process ? inside for each ?
Can you please provide an example using or renaming it inside the for earch .
ImPratham45
(Prathamesh Patil)
October 10, 2020, 11:56am
10
Exl.xlsx (8.8 KB) Main.xaml (9.2 KB)
cant open the activity has error , either missing or could not load properly Sir
can you add the files again include the json
I dont wanna rename all columns I just wanna rename specific column name
system
(system)
Closed
October 13, 2020, 1:22pm
15
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.