I'm attempting to populate some of the core property fields for Excel files (namely the subject, category, and title fields) and am having trouble finding a way to do so.
I was able to accomplish this with .docx files using the docx module like so:
doc = docx.Document(file)
name = doc.tables[1]._cells[43].text
data = doc.tables[0]._cells[1].text
numbers = re.findall('\d{9}', data)
doc.core_properties.title = numbers[0]
doc.core_properties.category = numbers[1]
doc.core_properties.subject = name
doc.save(file)
Is there a similar way to do this with .xlsx files or am I out of luck?