Is it possible to insert a worksheet into an existing workbook using Python?
The Problem Creation of fancy reports using Pandas and Python. Proposed Solution Using a template xlsx file containing a template sheet nicely formatted with references to another pre-populated worksheet, delete the pre-populated sheet and insert the new worksheet from pandas. The template sheet will lose the links reverting to #REF so these will need to be renamed. I tried: import os import xlrd, xlwt import envconfig swb1 = xlrd.open_workbook(os.path.join(envconfig.REPORT_WRITER_PATH,'TEMPLATE.xls'), on_demand=True, formatting_info=True) swb2 = xlrd.open_workbook(os.path.join(envconfig