In xlswriter, once the format is defined, how can you apply it to a range and not to the entire column or entire row?
eg:
perc_fmt = workbook.add_format({'num_format': '0.00%','align': 'center'})
worksheet.set_column('B:B', 10.00, perc_fmt)
this applies to the entire column "B", but how this "perc_fmt" applies to the range, for example, if I do this:
range2 = "B2:C15"
worksheet2.write(range2, perc_fmt)
He says:
TypeError: Unsupported type <class 'xlsxwriter.format.Format'> in write()
source
share