from ironxl import * # Load existing spreadsheet workbook = WorkBook.Load("sample.xlsx") worksheet = workbook.DefaultWorkSheet # Set repeating rows for row(2-4) worksheet.SetRepeatingRows(1, 3) # Set repeating columns for column(C-D) worksheet.SetRepeatingColumns(2, 3) # Set column break after column(H). Hence, the first page will only contain column(A-G) worksheet.SetColumnBreak(7) # Save changes with repeating rows and columns workbook.SaveAs("repeatingRows.xlsx")
重复 Excel 行和列