saving empty cells with styles results in an error
Created originally on Bitbucket by ericgazoni (Eric Gazoni)
{{{ #!python
import openpyxl wb = openpyxl.workbook.Workbook() ws = wb.create_sheet() ws.title = "bug" ws = wb.worksheets[0] cell = ws.cell('F5') #cell.value = 3.14 #commenting this line out will produce the error cell.style.font.bold = True cell.style.borders.bottom.border_style = 'thick' cell.style.borders.all_borders.border_style = 'thick' #Doesn't work! wb.save(filename = "bug.xlsx") wb = openpyxl.reader.excel.load_workbook(filename = "bug.xlsx") }}}