I want to run a script on a series of Excel files (xlsx) to basically copy 1 sheet into a new workbook, sort from Z to A and get rid of unwanted rows and columns... then save this new workbook under a specific name. could you advise me on the best way to do it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I want to run a script on a series of Excel files (xlsx) to basically copy 1 sheet into a new workbook, sort from Z to A and get rid of unwanted rows and columns... then save this new workbook under a specific name. could you advise me on the best way to do it?

5th Jul 2016, 3:29 PM
Marwan Khoury
Marwan Khoury - avatar
2 Answers
29th Mar 2017, 4:48 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
you can use openpyxl library to work with Excel file. just 'pip install openpyxl ' and start to use it. if you don't dispose of pip, install it and you are done
5th Jul 2016, 4:28 PM
zak