Hello,
let's say I want to write == to cell
import openpyxl
import sys
wb = openpyxl.Workbook()
ws = wb.active
ws['A1'] = "=="
ws['B1'] = "'=="
wb.save("sample.xlsx")
print (f'{sys.version}')
print(f'{openpyxl.__version__=}')
3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
openpyxl.__version__='3.1.5'
Opening excel give error and clears A1
B1 is displayed as '==
I was expecting ==, when I enter B1 and press enter B1 is displayed as ==
General question is how to print arbitrary data as string (it might start with =) to excel and not expect error.
Regards,
Reinis