book = load_workbook('output.xlsx')
sheet = book.active
while indexValue != 5:
    sheet[cell] = amounts[indexValue]
sheet[cell].font = fontStyle
indexValue += 1
cell = chr(ord(cell[0]) + 1) + str(cell[1])
print('Sheet updating complete.')
book.save('output.xlsx')
Using openpyxl module to write to spreadsheet creates a damaged spreadsheet, how to fix with zipfile module?