Hello,
I have error, that doesn't let me save the excel file, at the end of my Python program.
Here is some code:
import openpyxl
from openpyxl import Workbook
from openpyxl.styles import PatternFill, Border, Side, Alignment, Protection, Font
from openpyxl.cell.text import InlineFont
from openpyxl.cell.rich_text import *
from time import sleep
workbook = Workbook()
sheet = workbook.active
bold = Font(bold=True)
inl_bold = InlineFont(bold)
sheet.cell(row=1, column=2).value = CellRichText(["Ok", TextBlock(inl_bold, "I say"), "Hello"])
output_file = 'test.xlsx' # output: 'date_time...pr.ID'
workbook.save(filename=output_file)
This is the whole code. I couldn't found the docs on this, so I went into the files to take a
look and I wrote this code. I might be assigning something in the wrong order. I'm not really sure. Please, help if you can.