from ironxl import * # Load the Excel workbook workbook = WorkBook.Load("sample.xls") worksheet = workbook.WorkSheets[0] # Create freeze pane from column(A-B) and row(1-3) worksheet.CreateFreezePane(2, 3) # Overwriting freeze or split pane to column(A-E) and row(1-5) as well as applying prescroll # The column will show E, G, ... and the row will show 5, 8, ... worksheet.CreateFreezePane(5, 5, 6, 7) # Save changes with the created freeze panes workbook.SaveAs("createFreezePanes.xls") # Remove all existing freeze or split pane worksheet.RemovePane()