from ironxl import * # Load existing spreadsheet workbook = WorkBook.Load("sample.xlsx") worksheet = workbook.DefaultWorkSheet # Add a row before row 1 worksheet.InsertRow(0) # Insert multiple rows before row 4 worksheet.InsertRows(3, 3) # Add a column before column A worksheet.InsertColumn(0) # Insert multiple columns before column F worksheet.InsertColumns(5, 2) # Save changes with added rows and columns workbook.SaveAs("addRowAndColumn.xlsx")