I need to output some text into excel format with openpyxl. I want some of my texts as subscripts and others as superscripts.
I have checked the documentation for openpyxl but can't find anything about that. I did find the openpyxl.cell.text
module here.
This code runs fine
wb = OP.Workbook()
ws = wb.active
c = OP.cell.text.InlineFont(vertAlign='subscript')
ws.cell(row=1, column=1, value='ab')
wb.save('example.xlsx')
But I don't know how I can use c
to make text appear as subscript.