I am attempting to automate a monthly report that I write at work. Every month, the report from the previous month is opened in Word and the charts are updated via embedded Excel spreadsheets with the new months information.
I have a vague understanding that this can be done with VBA and win32com but I work on a Mac so I would prefer to use python-docx and openpyxl but as I understand MS native embedded elements are not supported in docx yet. I instead opted to just unzip the docx and edit the Excel file directly.
The thing I can't figure out is how to adjust the size of the table that the chart is pulling information from. This is shown by the blue line in the picture.
I've been reading as much of the openpyxl documentation as I can but I can't figure out how to do this.