Closed hdknr closed 8 years ago
-from openpyxl import load_workbook, Workbook, cell
+from openpyxl import load_workbook, Workbook
+from openpyxl.utils import get_column_letter
def writerow(self, row):
for i in xrange(1, len(row) + 1):
- ci = "{0}{1}".format(cell.get_column_letter(i), self.row)
+ ci = "{0}{1}".format(get_column_letter(i), self.row)
self.sheet.cell(ci).value = force_unicode(row[i - 1])
self.row += 1
does not work rather use print(openpyxl.utils.get_column_letter(1))