Forum Discussion

mwig's avatar
mwig
New Member
8 years ago

How to Auto Fill Column Titles With Row Text

Hello community, 

 

I am faced with a couple hundred files which are to be imported to Power BI and I must rename the columns based on the 2rd row in each sheet. What is the best way to automate this?

 

For clarity, each sheet that I am uploading have identical templates - and each of them has the title for the columns in row 2 - and instead of copying and pasting for days - I'd like to use script that will take the text in the second row and [in the same order] rename the columns.

 

Please let me know if more information is needed!

 

Thanks!

5 Replies