import win32com.client wbk = 'C:\\myfolder\\myfile.xlsx' xlApp = win32com.client.Dispatch("Excel.Application") xlApp.Workbooks.Open(wbk) xlAscending = 1 xlSortColumns = 1 xlApp.Sheets(1).Range("A2:C9").Sort(Key1=xlApp.Sheets(1).Range("C1"), Order1=xlAscending, Orientation=xlSortColumns) xlApp.Quit xlApp = None