How do I move (reorder) sheets in Excel file with Python

724 views Asked by At

There is an excel file named test.xlsx, which has 3 sheets: ['Sheet1', 'Sheet2', 'Sheet3'], how do I use Python to reorder the sheets as: ['Sheet3', 'Sheet1', 'Sheet2']

1

There are 1 answers

2
Charlie Clark On

Workbooks have the move_sheet() method.